Xcode 8 won't allow different entitlements per build configuration
Originator: | mark.struzinski | ||
Number: | rdar://32324285 | Date Originated: | 2017-05-22 |
Status: | Open | Resolved: | |
Product: | Xcode | Product Version: | 8.3.2 |
Classification: | Serious Bug | Reproducible: | Always |
Summary: Xcode 8 will not switch configurations based on the current build scheme. I have build configurations that need to compile with different entitlements files. These configurations are driven by different build schemes. When switching from one build scheme to another and attempting to archive, Xcode always reads the same configuration. It then fails to compile when it checks dependencies, because it always reads from the same scheme, and throws an error message that the current entitlements file does not match the group id I am trying to use for App Groups. Steps to Reproduce: 1. Create new project. 2. Deactivate "Automatically manage signing" in the "General" tab. 3. Add multiple configurations to the project. 4. Define all configurations to use a different bundle ID. 5. Add the app groups entitlements. 6. Specify a different entitlements file for each configuration. 7. Use a different app group ID in each entitlement file (e.g. "group.<bundleID>.AppName") 8. Try selecting a provisioning profile for each configuration. At least one will show an error. 9. Attempt to archive. Expected Results: Archive succeeds Observed Results: The build will throw a dependency error, stating the entitlements file does not support the app id’s App Group bundle id. The capabilities tab does not allow switching between the active scheme. Version: Xcode: 8.3.2 / 8E2002 macOS: 10.12.5 Notes: Configuration: Any
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!