Over The Air install from Xcode Bot fails with Share Extension/Entitlements

Originator:kevboh
Number:rdar://20023568 Date Originated:3/3/15
Status:Open Resolved:No
Product:Developer Tools Product Version:Xcode 6.1.1
Classification:Serious Bug Reproducible:Always
 
Xcode Bots that build projects that include entitlements (App Group entitlement, for this bug filer) create over-the-air install products that fail when installation is attempted on the device.

Error Domain=MIInstallerErrorDomain Code=63 "Application is missing the application-identifier entitlement."

Adding an application-identifier key/value to the Xcode-generated AppName.entitlements file in Xcode 6 causes Archive actions to fail locally and OTA installs to fail in Xcode Bots with this error:

Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.1mF4rr/extracted/Payload/MyApp.app identifier = com.my.bundle.indentifier type = 4> : 0xe8008016 (Entitlements found that are not permitted by provisioning profile)"

Removing the share extension and app group entitlement causes the product to be installable.

Steps to Reproduce:
1. Install Xcode and Xcode Server.
2. Create an app that includes a share extension target and has App Group entitlements enabled.
3. Build the app on Xcode Server.
4. Try to install the product.

Expected Results:
Product should install.

Actual Results:
Installation fails.

Version:
Xcode 6.1.1, OS X Server 4.0.3.

Notes:


Configuration:


Attachments:

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!