App Store Deployment Problems

Sorry for cross-posting, but this is really holding me up…

I think this is the one phase of development that needs a clear step-by-step somewhere on the site.

For a company (Apple) that strives to make things easy, they sure seem intent on making developing for the iPhone as complicated as it can possibly be.

I’ve built my app, it runs fine on my device, so I’m satisfied that it’s ready for the AppStore.

So I “Build for iOS” and then I’m told it’s good to go to the AppStore. So I start the process and I get the following errors:

  1. Users/(me)/Desktop/(appname).app is not a valid location for the app. It must be at the top level of the archive.

  2. The CodeResources file must be a symbolic link to _CodeSignature/CodeResources. Make certain that the bundle is on a locally-mounted volume (not a re… (the rest is cut off)

  3. Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate.

I tried to take care of #1 by moving the app to the root of my hard drive, but that didn’t work…not that I expected to. But I don’t really get what it’s complaining about here. If it wanted the app to be in a certain place, why didn’t it just put it there???

#2 and #3 have me completely stymied.

Relevant links/info would be greatly appreciated!

-John
[import]uid: 29170 topic_id: 6516 reply_id: 306516[/import]

Do you have any spaces or non-alphanumeric characters in you path or file name? That has caused problems in the past.

Which version of Corona are you using? Have you tried the daily builds?
[import]uid: 7563 topic_id: 6516 reply_id: 22639[/import]

Hi Ewing,

Nope, no spaces or non A/N characters in the path…just:

\CoronaProjects(appname)

And I’ve tried both the stable and the latest daily builds.

-John
[import]uid: 29170 topic_id: 6516 reply_id: 22643[/import]

With the latest daily build, Corona now runs Apple’s validation tool. Does the build pass the validation tests and present you the Upload to App Store button?

[import]uid: 7563 topic_id: 6516 reply_id: 22645[/import]

Yep, and the validation tool says it’s ready to go. I initially had some issues with my icons, but those were sorted out.

[import]uid: 29170 topic_id: 6516 reply_id: 22647[/import]

Are you using Xcode 3.2.5?

Are you uploading the .zip file we create for you and pass to Application Loader? You might try completely deleting both the .app and .zip and try a clean build.

Have you opened up the zip or .app bundle and checked if the contents are okay? Did you look for the symlink its complaining about? Perhaps you could also try zipping up the bundle yourself in case something broke when we tried zipping it for you.

Did you verify all your certificates are okay?

[import]uid: 7563 topic_id: 6516 reply_id: 22650[/import]

Hi Ewing,

Thanks for your help…so to answer your questions:

  1. Yes, using Xcode 3.2.5

  2. Yes, using the auto-generated zip file.

  3. Did open the zip, and I’m not sure exactly what it’s supposed to look like…I’m a PC guy normally, and have never done an App Store submission, so this is new material for me.

I *did* notice that the full path to the archive was stored in the zip…so you open the zip, click “users”, then me, then “desktop”, and then you see appname.app … probably the first thing it was complaining about.

So the last thing I tried just now was building using the distribution provision, but not running App Loader when prompted. I then delete the zip it created and archive the app myself. This looked pretty promising, but then I got this error message:

“This bundle is invalid. Apple is not currently accepting applications built with this version of the SDK.”

!@!!^$^%@!!@$

Good thing I’m bald already…I would have already pulled my hair out! :slight_smile:

-John [import]uid: 29170 topic_id: 6516 reply_id: 22691[/import]

Did you install a beta version of Xcode at some point? In Terminal.app, please run the command:
xcode-select -print-path
The path should match to the stable version of Xcode 3.2.5 with the 4.2 SDK. If it doesn’t you need to fix this.

Are you building a Universal iPhone/iPad binary?

If you try creating a simple HelloWorld and uploading it to the App Store as your app (then reject the binary so Apple won’t review it), will the binary submit?

[import]uid: 7563 topic_id: 6516 reply_id: 22754[/import]

Hi Ewing,

I didn’t install beta Xcode…I just recently updated my MacBook to the latest OS so I could install Corona, and then this weekend I installed the latest Xcode. The Help->About box says 3.2.5.

Running the xcode-select -print-path shows:

\Developer

Is this where Xcode normally lives?

But you may be on to something here…all my old stuff from OS 10.5 is still in there.

I was building just for iPhone.

So should I nuke Xcode and re-install, or would you take less drastic measures?

Thanks for your patience with me.

-John [import]uid: 29170 topic_id: 6516 reply_id: 22765[/import]

/Developer is the default case for Xcode 3.2.5 so that looks right.
Since you installed Xcode over the weekend, I’m going to speculate that your Xcode is installed correctly. You could try reinstalling it (there is a remove script inside the Xcode directory…see Apple’s notes on that), but I don’t expect any change. However, if you have time to kill, it probably won’t make things worse.

I think you should try uploading a simple hello world like example just to see if it will take.

Finally, I think maybe you should file a bug with us and attach the .zip we create, zip up the .app yourself and attach that, and send us your entire project so we can try to build it and reproduce it. When you do this, please post the bug number here so I can track it.

[import]uid: 7563 topic_id: 6516 reply_id: 22772[/import]

I will definitely try the hello world.

I will file the bug report on the zip, and attach my entire project to it.

Thanks for your help, I appreciate it very much.

-John [import]uid: 29170 topic_id: 6516 reply_id: 22774[/import]

Hi Ewing,

I have submitted the bug, and attached my entire project (which isn’t much…it was more about seeing the process in action than actually doing something big.)

The case is #3559.

Thanks again!
-John [import]uid: 29170 topic_id: 6516 reply_id: 22828[/import]

Also, building “hello world” has the same behavior.

And I checked, it doesn’t look like I have any other version of the SDK even installed. I built this iOS app from the OpenGL template just after installing Xcode.

I’m wondering now if the SDK message isn’t a red herring…maybe the true problem is still with the archive, not the SDK.

:-/

-John [import]uid: 29170 topic_id: 6516 reply_id: 22830[/import]

Would you try Corona build 268 (current stable)? We just got a report about sqllite being broken in the current daily’s. It seems a large chunk of data is missing from the binary in iPhone-only builds. I’m wondering if its related to your problem. 268 doesn’t seem to exhibit this problem.
[import]uid: 7563 topic_id: 6516 reply_id: 22831[/import]

WOOHOO!!! IT WORKED!
So it’s definitely a problem with 296!

AWESOME, my app is now submitted…thanks!

-John [import]uid: 29170 topic_id: 6516 reply_id: 22832[/import]

Were you building iPhone-only? The bug seems to only affect that one.
[import]uid: 7563 topic_id: 6516 reply_id: 22834[/import]

Yep, it was iPhone only. [import]uid: 29170 topic_id: 6516 reply_id: 22837[/import]

I seem to get the same exact problem on build 300.

I still get this message with 268

Users/Leo/Desktop/BeatTheWorldRecordC.app is not a valid location for the app. It must be at the top level of the archive [import]uid: 8192 topic_id: 6516 reply_id: 24402[/import]

I’m getting this same error. I’m trying to upload my iPad-only app and I get the same two error messages. I have Xcode 3.2.5, never installed a beta.

I’m using Corona SDK 2011.318 (2011.1.20

During build in Corona, the last message I see is:

2011-03-25 12:01:19.480 Validation[68900:903] *** Warning: Defaulting to the standard codesign tool
I tried throwing away the .zip file that Corona created and zipped it myself and submitting through the Application Loader. It worked!!

So, is there some problem with the way you’re zipping it? [import]uid: 9905 topic_id: 6516 reply_id: 29515[/import]

[EDIT]

Problem solved -thx :slight_smile:
[import]uid: 10504 topic_id: 6516 reply_id: 97349[/import]