facebook / facebook/facebook-ios-sdk
Invalid bundle structure - Error when validating app in Xcode
- Dominant language
- Swift
- Stars
- 8.1k
- Forks
- 3.7k
- PR merge metrics
- No merged PRs in 30d
Description
### Checklist before submitting a bug report
- [X] I've updated to the latest released version of the SDK
- [X] I've searched for existing [GitHub issues](https://github.com/facebook/facebook-ios-sdk/issues)
- [X] I've looked for existing answers on [Stack Overflow](https://facebook.stackoverflow.com), the [Facebook Developer Community Forum](https://developers.facebook.com/community/) and the [Facebook Developers Group](https://www.facebook.com/groups/fbdevelopers)
- [X] I've read the [Code of Conduct](https://github.com/facebook/facebook-ios-sdk/blob/main/CODE_OF_CONDUCT.md)
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
### Xcode version
15.0.0
### Facebook iOS SDK version
16.2.0
### Dependency Manager
CocoaPods
### SDK Framework
Core
### Goals
I'm trying to validade my app so I can deploy it to AppStore.
### Expected results
The app is building and generating the Archive correctly, but when I validate, this issue is happening.
### Actual results
I'm getting this error on app validation:
`Asset validation failed
Invalid bundle structure. The “Runner.app/Frameworks/FBSDKCoreKit_Basics.framework/FBSDKCoreKit_Basics” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: f57e33dc-ac1e-47f6-8179-56a849a7cf7a)`
`Asset validation failed
Invalid bundle structure. The “Runner.app/Frameworks/FBAEMKit.framework/FBAEMKit” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: 4b730963-b964-46ae-97a8-3b515b1e2065)`
`Asset validation failed
Invalid bundle structure. The “Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: a1daed80-714b-4da4-8230-30b2a4b640f4)`
### Steps to reproduce
_No response_
### Code samples & details
```swift
// INSERT YOUR CODE HERE
var example = "Example code"
```
Contributor guide
Assessment
This issue has not been assessed yet.