Invalid Bundle Structure

Just out of curiosity, even with using an external folder, did you go into your project folder and remove the app bundle that was previously put there?

Rob

I haven’t removed the app (because it ask where to find the zip file and the date time is the last one) but, after read you, I tried:

   removed the *.app and the *.zip file from the initial project folder.

   tested another time, but it still gives the error!

I’m planning to restart everything from scrash: the certificate, profile, itunes connect, etc… but is very frustrating don’t know what I’m doing wrong.

Thanks!

I have done everything but the problem persists. There is a full documentation step by step to discover what I’m doing wrong?

Yo can see my configurations here:

https://www.dropbox.com/s/m3x8cx5hozeepnj/Settings_-_iOS_App_IDs_-_Apple_Developer.png

https://www.dropbox.com/s/2oj9yq1595gi885/iTunes_Connect.png

Thanks 

Can you humor me, open your terminal and change directory to the folder with your main.lua in it and execute this command:

find . -print

and post the results here.

Rob

Hi Rob and Ibolduc,

I found it! I have resolved it! :slight_smile:

I was cleaning the App (compressing the images to optimize a little bit more) and I found an app.zip lost in one of the directories…

Thanks all for your help.

Best Regards,

Josep Alemany

I have the same problem…

Following the previous posts I have created a new folder (AppsBuilds) out of the project but the problem persists. Any idea / suggestion?

Thanks!

 Can you post the exact error you are getting?

Thanks

Rob

@jalemanyf, Apple and Corona update requirements since this post have wreaked a lot of havoc for me at least. On 7/30/14, I clicked to upload a perfectly working back-to-school app and got bounced due to a requirement to build with latest public release Version 2014.2393 (2014.8.5).

If you aren’t already running that version or later, you must. After updating, your code must run in at least “graphicsCompatibility = 1,” (enter this as first line of code in content table section of config.lua). Or, Corona’s best case preference, run in full Graphics 2.0 (no config specification required).

This has terminally broken my video module … so long, back to school sales.

If public release case is not relevant for you, I’ve read that some people have had trouble when they click upload to store button within SDK presented after distrib app build completes. It’s been suggested to try opening Application Loader outside of Corona and pull it through that way.

Good luck!

Just to clarify…  Apple changed the format of their provisioning profiles a couple of days after we released our public build 2393.  Any newly downloaded profile would not work.  We pushed out a fix for Daily Builds and patched 2393 to a new 2393a (iOS only) that handles this correctly.  Daily build 2401 is the oldest daily build that will work with new iOS profiles now.

Rob

I answer in order:

The exact error message is:

“ERROR ITMS-9000: “Invalid Bundle Structure - The binary file ‘EirEnfermeria.app/EirEnfermeria.app/EirEnfermeria.app/EirEnfermeria’” is not permited. Your app may contain only one executable file. Refer to the Bundle Programming Guide at https://developer.apple.com/library/ios/#documentation/CoreFoundation/Conceptual/CFBundles/BundlesTyoes/BundleTypes.html%23//apple_ref/doc/uid/100000123i-CH101-SW1 for information on the iOS app bundle structure.”

This message appairs twice: exactly the same.

Ibolduc:

Thanks for your answer. I’m using full Graphics 2.0 (So, no config is required).

Rob:

Thanks for the advice. I was generating with the public build 2401. After read your post, I have repeat it with the 2393a with the same result. We can discard this.

It seems I have done badly the name structure and it is repeated the ‘eir enfermeria’ directories inside the bundle. If you tell me how to do it well, I can repeat the profile or anything.

Thanks!

Josep Alemany

Josep,

When you build your app, where is your “Save to Folder” pointing? It must point outside Eir Enfermeria project’s folder. For example, based on Rob’s tip, my builds now point to a desktop folder named AppBuild …

Save to folder: /Users/lbolduc/Desktop/AppBuild

If you’re not already doing that, I’d give it a go and see whether that changes anything.

Ibolduc,

I have already done that (following the sample of Rob, I created an AppBuilds directory outside) but I have the same problem :frowning:

It must be another think.

Thanks!

I think I have write wrong the Bundle ID Suffix  when the App is defined on the iTunes Connect. What do you wrote in the Bundle ID Suffix?

I have a series of apps, so I use the option of defining each app like this …

     com.mycompanyname.currentappshortname

When creating a new app, I give iTunes … 

     Bundle ID Suffix: currentappshortname, (i.e.) app1

Then, specify or confirm pre-suffix name that matches app’s provisioning file

     com.mycompanyname.*

And, iTunes concatenates to create bundleID

     com.mycompanyname.app1

When you’re building your app with Corona, make sure that the selected Code Signing Identity matches your choice in setting up the app’s chosen provisioning profile. The profile associated with the pre-suffix segment of your Bundle ID.

Just out of curiosity, even with using an external folder, did you go into your project folder and remove the app bundle that was previously put there?

Rob

I haven’t removed the app (because it ask where to find the zip file and the date time is the last one) but, after read you, I tried:

   removed the *.app and the *.zip file from the initial project folder.

   tested another time, but it still gives the error!

I’m planning to restart everything from scrash: the certificate, profile, itunes connect, etc… but is very frustrating don’t know what I’m doing wrong.

Thanks!

I have done everything but the problem persists. There is a full documentation step by step to discover what I’m doing wrong?

Yo can see my configurations here:

https://www.dropbox.com/s/m3x8cx5hozeepnj/Settings_-_iOS_App_IDs_-_Apple_Developer.png

https://www.dropbox.com/s/2oj9yq1595gi885/iTunes_Connect.png

Thanks 

Can you humor me, open your terminal and change directory to the folder with your main.lua in it and execute this command:

find . -print

and post the results here.

Rob

Hi Rob and Ibolduc,

I found it! I have resolved it! :slight_smile:

I was cleaning the App (compressing the images to optimize a little bit more) and I found an app.zip lost in one of the directories…

Thanks all for your help.

Best Regards,

Josep Alemany