Xcodebuild missing archived-expanded-entitlements.xcent from IPA

Originator:davidq
Number:rdar://21309570 Date Originated:6/9/2015
Status:Open Resolved:
Product:Developer Tools Product Version:XCode Version 6.3.2 (6D2105)
Classification: Reproducible:Yes
 
Summary:
Creating an IPA with xcodebuild on the CLI doesn't contain the archived-expanded-entitlements.xcent file in the IPA.  Creating the IPA from within Xcode does create an IPA with archived-expanded-entitlements.xcent.

Steps to Reproduce:
1. Create an Enterprise app archive for a $projectname.xcworkspace
2. Run xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile “Provisioning Profile Name” to create an IPA from the CLI
3. Rename the projectname.ipa to projectname.zip and unzip it
4. Look in the Payload/projectname.app for archived-expanded-entitlements.xcent which is missing
5. In the Archives save the archive for Enterprise deployment
6. Rename the projectname.ipa to projectname.zip and unzip it
7. Look in the Payload/projectname.app for archived-expanded-entitlements.xcent which is present

Expected Results:
Both ways of creating the IPA from the archive (xcodebuild and within Xcode itself) should yield the archived-expanded-entitlements.xcent.


Actual Results:
Creating the IPA from xcodebuild does not have the archived-expanded-entitlements.xcent.  Creating the IPA from Xcode does have the archived-expanded-entitlements.xcent.

Version:
XCode: Version 6.3.2 (6D2105)
OSX: Version 10.10.3
iOS: Version 8.3 (12F69)

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!