Xcode 8 can't compile using different app group IDs for different configurations

来源:互联网 发布:it专业培训 编辑:程序博客网 时间:2024/05/17 10:52

【https://openradar.appspot.com/28204125】


Xcode 8 can't compile using different app group IDs for different configurations

Originator:cargath Number:rdar://28204125Date Originated:08-Sep-2016 11:48 AMStatus:OpenResolved: Product:Xcode 8Product Version:8.0 (8A218a)Classification:Serious BugReproducible:Always
 Summary:Xcode 8 doesn't compile all configurations, if those configurations use different entitlements with different app group IDs. There's always at least one app group ID from one of the entitlements files selected in the capabilities tab, and the provisioning section in the general tab is always looking for that app group ID in the selected provisioning profile, so it shows an error for the configurations that use entitlements with a different app group ID.I tried deselecting the app group ID in the capabilities tab but that a) removes it from the entitlements file of the currently selected build configuration (so i had to add a dummy configuration with which to deselect the ID in the capabilities tab) and b) the ID specified in the currently selected build configuration is automatically selected in the capabilities tab again when restarting Xcode.I tried using an environment variable as an app group ID, which worked in Xcode 7, but didn't help with the new provisioning system.I would even be happy with using one app group ID for all configurations, but we have different bundle IDs for all configurations, and if i use the same app group ID for multiple bundle IDs, Xcode doesn't acknowledge the entitlements at all.This seems to be an entirely UI related problem: When i select a provisioning profile that Xcode thinks doesn't include the correct app group ID, Xcode won't build it - but it works from the terminal (we use Fastlane to build from the terminal).Steps to Reproduce:1. Install Xcode 8.2. Create new project.3. Deactivate "Automatically manage signing" in the "General" tab.4. Add multiple configurations to the project.5. Define all configurations to use a different bundle ID.6. Add the app groups entitlements.7. Specify a different entitlements file for each configuration.8. Use a different app group ID in each entitlement file (e.g. "group.<bundleID>.AppName")9. Try selecting a provisioning profile for each configuration. At least one will show an error.Expected Results:Xcode should look for the app group ID specified in the entitlements file selected for the currently active build configuration.Actual Results:Xcode looks for the app group ID selected in the capabilities tab, which only allows selecting the ID for a single configuration, which breaks provisioning for all other configurations.

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!


0 0
原创粉丝点击