WatchKit extensions cannot contain Swift stdlib - Submittion failure
| Originator: | info | ||
| Number: | rdar://20377499 | Date Originated: | 31-Mar-2015 09:04 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 6.2 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: When creating an app with a WatchKit extension with Swift, Xcode automatically sets EMBEDDED_CONTENT_CONTAINS_SWIFT to “Yes” for Swift projects. That makes sense, because the target **does** contain Swift code. The problem however is that iTunes Connect rejects this binary because the extension contains a “Frameworks” folder. Steps to Reproduce: Create a Swift app with an Apple Watch extension. Archive and submit to iTunes Connect. Expected Results: App is accepted. Actual Results: iTunes Connects rejects binary with the error “The bundle ___WatchKit___.appex contains disallowed file "Frameworks”. Regression: Unintuitively, changing that setting to “No” fixes the problem. Notes: Why would one have to make EMBEDDED_CONTENT_CONTAINS_SWIFT “No” for a target that contains Swift code? Why would we have to know about implementation details of the IDE? Xcode should just understand what the targets are, and figure out what the internal structure of the IPA needs to be for an app. That shouldn’t be the responsibility of a developer, specially not without more helpful messages than “The bundle ___WatchKit___.appex contains disallowed file "Frameworks”.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!