PackageApplication allows to embed incorrect provisioning profile

Originator:nskboy
Number:rdar://11676855 Date Originated:15-Jun-2012 09:16 AM
Status:Duplicate/9602102 Resolved:10-Jul-2012 11:09 PM
Product:Developer Tools Product Version:4.3.2/4E2002
Classification:Other Bug Reproducible:Always
 
15-Jun-2012 09:16 AM Roman Busyghin:
Summary:
PackageApplication allows incorrect provisioning profile to be attached to the app

Steps to Reproduce:
1. Build an app for App Store
2. Run "xcrun -sdk iphoneos -run PackageApplication --embed '/Full/Path/To/Enterprise.mobileprovision' '/Full/Path/To/Your.app' -o '/Desired/Full/Path/To/YourApp.ipa'"

Expected Results:
PackageApplication should not allow to embed any incorrect provisioning profile (e.g. enterprise profile for App Store signed application)

Actual Results:
PackageApplication embeds provided provisioning profile without errors.

Regression:
It looks like the bug persists from day one of iOS SDK.

Notes:
As far as I understand PackageApplication is an official way to package iOS app. Thus this script should not allow to produce IPA files in inconsistent state.

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!