Welcome

how would you rate The Holy Qura'an - Arabic ver?

Monday, April 28, 2014

Solution to "Invalid Bundle Structure - The binary file ... is not permitted. Your app may contain only one executable file" for apps built by Phonegap

Posting to Apple as we all know is a pain in the ass.

For the last few days I've been trying to debug my app to submit it to Apple. I use Application Loader to upload the app and the biggest hurdle I ran into was the error:

Invalid Bundle Structure - The binary file 'xx.app/xx' is not permitted. Your app may contain only one executable file. Refer to the Bundle Programming Guide for information on the iOS app bundle structure.

After hours of pulling hair here is how I solved it:

  1. After compiling your app with Phonegap remove:
    1. platforms > ios > build > simulator
    2. platforms > ios > build > device
  2. Open platforms > ios > projectName.xcodeproj
  3. Go to Product in xcode then Scheme > Edit Scheme > executable = projectName.app
  4. Go to Product in xcode then Scheme > Edit Scheme > Build Configuration = Release
  5. Replace with your app icons all icons under platforms > ios > projectName > Resources > icons
  6. Replace with your app splash screen images all images under platforms > ios > projectName > Resources > splash
  7. Add all images from splash and icons folders in config.xml file
  8. Zip your directory, upload to Phonegap, download IPA from Phonegap, Upload with Application Loader
That's all. I hope this help someone. 

No comments:

Post a Comment