Impossible to build extension for app target with different bundle ids (distribution / beta)
| Originator: | raphael | ||
| Number: | rdar://17301691 | Date Originated: | 13-Jun-2014 04:03 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 6 - iOS |
| Classification: | Serious Bug | Reproducible: | Not Applicable |
We're trying to build a photo editing extension on iOS for our app. Our app is typically built with 2 different bundle ids: com.company.app & com.company.beta.app. We use a different bundle id like many other developers to enable released and beta builds to coexist on the same device. This bundle id is changed depending on the build configuration in Xcode: Debug -> com.company.beta.app Release -> com.company.beta.app AdHoc -> com.company.beta.app Distribution -> com.company.app The extension reflects that by tuning it target build settings: Debug -> com.company.beta.app.extension Release -> com.company.beta.app.extension AdHoc -> com.company.beta.app.extension Distribution -> com.company.app.extension But the copy build phase that copies the extension into the app always look for the same extension (beta in this case), com.company.beta.app.extension, which obviously fails when building in Distribution (not beta). Building: com.company.app copy: com.company.beta.app.extension (should be com.company.app.extension, as we're building com.company.app, but the copy phase is not customizable and always refers to the beta one) error: Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier. Embedded Binary Bundle Ientifier: com.company.beta.app.extension Parent App Bundle Identifier: com.company.app Thanks!
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!