Xcode 6.1 cannot release Mac apps with bundled XPC because it embeds provisioning profile twice

Originator:kastansn
Number:rdar://18304502 Date Originated:2014/09/11
Status:Closed Resolved:
Product:Developer Tools Product Version:6.1
Classification:Serious Bug Reproducible:Always
 
Summary:
When trying to release a Mac OS X app that contains a XPC helper bundle with Xcode 6.1, iTunes Connect rejects the resulting binary with the message "Invalid Provisioning Profile Location - The provisioning profile for your Mac OS X app must be located in the Contents directory of the main app bundle. A provisioning profile is optional, but you cannot submit more than one."

This is probably because Xcode, starting with 6.1., forces the inclusion of a provisioning profile even in bundled XPC apps. This seems to happen within the uploading process to iTunes connect, so the user has no possibility to exclude the excess provisioning profile prior to uploading the binary.

Steps to Reproduce:
1. Create an Objective-C app for OS X and add a XPC helper application target to it.
2. Release the resulting application with XCode to iTunes Connect
3. Receive a mail by iTunes Connect stating that the provisioning profile is at an invalid location or has been embedded more than once.

Expected Results:
The app should be accepted by iTunes Connect as it has been the case with Xcode versions prior to 6.1

Actual Results:
iTunes connect sends a complaint email: "Invalid Provisioning Profile Location - The provisioning profile for your Mac OS X app must be located in the Contents directory of the main app bundle. A provisioning profile is optional, but you cannot submit more than one."

Version:
Xcode 6.1 (6A1027)
OS X 10.10 DP 7 (14A343f)

Notes:
Other Xcode users experience the same problem, please see http://stackoverflow.com/questions/25774379/invalid-provisioning-profile-location-xcode-6-embeds-it-on-submission for example.

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!