New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-13840] Xcode produces an invalid application package when adding a Swift Binary Targets #4474
Comments
@swift-ci create |
Here is a workaround provided by Kevin Bui on the Swift Forums: https://forums.swift.org/t/swift-package-binary-framework-issue/41922/3 |
Reproduced with sample project in Xcode 12.2 (12B45b), Swift 5.3.1, running under macOS v10.15.7 |
Comment by Stuart Breckenridge (JIRA) Reproduced on Xcode 12.3 (12C33), Swift 5.3.1, macOS 11.1. Given that this behaviour produces a submission-breaking outcome, it should probably be rated higher than Medium. |
Comment by Christopher Prince (JIRA) Still happening for my app with Xcode 12.4. |
Comment by Stuart Breckenridge (JIRA) It’s a documented issue in the Xcode 12.4 release notes. Hopefully, it’ll get fixed next release. |
Comment by Héctor García Peña (JIRA) I want to add the Framework files are also added to the following folders (in case the app support such features):
We had the following errors: ERROR ITMS-90680: "Invalid directory. The bundle Payload/<undisclosed>/AppClips/<undisclosed>.framework is not contained in a correctly named directory. It should be under "Frameworks"." ... ERROR ITMS-90680: "Invalid directory. The bundle Payload/<undisclosed>/Watch/<undisclosed>.framework is not contained in a correctly named directory. It should be under "Frameworks"." |
Comment by César Pinto Castillo (JIRA) I can confirm that this bug no longer happens for me on Xcode v12.5(12E262) RC |
Attachment: Download
Environment
Xcode 12.1 (12A7403)
macOS 10.15.7 (19H2)
Swift 5.3
Additional Detail from JIRA
md5: 0c771536479cc1f71eafb8ded2cffc6f
Issue Description:
When adding a Swift Binary Package to an Xcode project that also have an extension the binary package will be copied both to the Plugins folder and the Frameworks folder.
This happen on Xcode 12.1 and earlier.
A sample project to reproduce this bug can be found here:
https://github.com/karimhm/Apple-Radars/tree/main/SwiftBinaryPackageBugSample
To reproduce the bug:
Open SwiftBinaryPackageBugSample.xcodeproj Xcode project.
Wait for all the packages to resolve.
Build or archive the application and examine its structure.
The application bundle look as follow:
The text was updated successfully, but these errors were encountered: