This is a migrated thread and some comments may be shown as answers.

"bundle is invalid" uploading new version to AppStore

4 Answers 162 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Elton
Top achievements
Rank 1
Elton asked on 04 Apr 2013, 09:23 PM
I've hit an issue trying to publish a new version of an app to the iTunes App Store. 

For  version 1.0 I published in Mist, downloaded the IPA and uploaded manually with Application Loader - no issues.  Then added some functionality, published as v 1.1 from Mist and when I try to upload I get this error: The bundle is invalid. The application-identifier entitlement is not formatted correctly...

My app ID, cert and provisioning profiles in Mist haven't changed. Googling the issue there is talk of an incorrect bundle ID in entitlements.plist, but  there's no such file in either the 1.0 or the 1.1 IPA. Any thoughts? Both versions of the app have gone to Play Store without any problems.











4 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 05 Apr 2013, 10:01 AM
Hi Elton,

 This is due to a bug in Icenium when it comes to generating codesigning entitlements for wildcard provisions (provisions in which the identifier contains an asterisk). We've already fixed this and it'll land in our May release.

 In the mean time I can offer to walk you through manually codesigning your app if you have access to a Mac, or I can sign your app for you, provided you let me use your provision and cryptographic identity.

All the best,
Yavor Georgiev
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
0
Elton
Top achievements
Rank 1
answered on 05 Apr 2013, 11:29 AM
Hi Yavor,

thanks for the prompt reply, glad to hear a fix is coming.

I will likely have a couple of releases this month, so if you can detail how to do the manual codesigning (I do have a Mac I can use), that would be great.

Elton.
0
Yavor Georgiev
Telerik team
answered on 05 Apr 2013, 03:05 PM
Hello Elton,

 This is what you need to do, in the Terminal on a Mac:
  1. Unzip you app:
    unzip -o app.ipa -d app
  2. Extract the current entitlements to entitlements.plist:
    codesign -d -vv --entitlements entitlements.plist app/Payload/Cordova240.app
    Note: it could be Cordova240, Cordova220 or Cordova200 depending on the Cordova version you're using. I'm using Cordova240 for this example.
  3. Open the entitlements.plist file. It's a simple XML file. There's a bit of junk before the starting <?xml line so delete that.
  4. Locate the application-identifier key. Its value should look like "##########.*" or "##########
    .com.yourcompany.*". The first ten symbols are your team identifier in the iOS Provisioning Portal. Modify it so that it looks like "##########.your.complete.app_identifier" and save the file.
  5. If you don't have your codesigning identity on your Mac, you can export it from Icenium and import it in OS X's Keychain Access.app
  6. Apply the new code signature:
    codesign -f -s "iPhone Distribution" --entitlements entitlements.plist --resource-rules /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/ResourceRules.plist app/Payload/Cordova240.app
    The --resource-rules switch points to a ResourceRules.plist file from the iOS SDK. If you don't have Xcode, you can download the file from here and just use that instead.
  7. Repackage your app:
    pushd app; zip -r ../app_resigned.ipa Payload; popd

 You can then upload app_resigned.ipa using Application Loader, which comes with Xcode. If you don't have Xcode, you can download Application Loader from iTunes Connect.

Kind regards,
Yavor Georgiev
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
0
Elton
Top achievements
Rank 1
answered on 05 Apr 2013, 03:40 PM
Thanks Yavor, that worked perfectly and version 1.1 is in the App Store now, waiting for review.

Many thanks for your detailed help.
Tags
Report a bug
Asked by
Elton
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Elton
Top achievements
Rank 1
Share this question
or