Page 1 of 1

Submitting to appstore - Application failed code sign verify

Posted: Wed Dec 21, 2011 8:39 am
by colourpixels
Hi all,
I've trolled through the forums and lessons and can't figure out where I'm going wrong in submitting my app to the store. The end result is when I submit via Application loader I get "Application failed code sign verification".

The steps I've taken:
1) created my certificate via keychain following the instructions
2) in the IOS provisioning portal - certificates - distribution, uploaded said certificate, then download and double-click on it (plus the WWDR cert)
3)jump to provisioning - distribution and create a new profile. Download the profile
4) Drag the profile into Xcode to install it.
5) select the profile in the IOS standalone applications settings
6) create the app, zip it using built in "compress" right click option
7) select the app in application loader and submit.

but I still get the error. I've tried signing assistant mentioned in another thread, but it never seems to do anything when I click ok in the App signing tab (is it ok in OSX lion?)

I've been trying ALL day, deleting keys, starting over...all to no avail. So frustrating being this close and failing at the very last step. So ANY help anyone can give would be greatly appreciated. I've looked at the lessons in mobile lessons and for the life of me it seems like I'm doing it all correctly.

Thanks for any help

Cheers
Dale

Re: Submitting to appstore - Application failed code sign ve

Posted: Wed Dec 21, 2011 10:22 am
by macnomad2
ok ok
1) Is it working well when you connect your iphone/ipad to tyour Mac and copy the app to it using Xcode ? Is it accepted correctly ?
2) You need iphone developer AND iphone distribution in Xcode/organizer/developer profile + provisioning profile (development and distribution)
3) You can use from Xcode the export to export the combined profile+certificate and try to re-import it after
4) Have you the last versions of everything ? Didi you modify the standalone settings in "strange ways" ?

hope it helps
Georges

Re: Submitting to appstore - Application failed code sign ve

Posted: Wed Dec 21, 2011 10:34 am
by colourpixels
1) yeah when I use my developer profile (rather than distribution) can copy to my iPad and it works
2) Do I need both to do the app store submission? or just one to do local builds + test on device and the other for submitting to app store (i.e. separate needs) or does the appstore submission use the developer one in some way?
3) I'll have a look see in Xcode and try and figure out what you mean
4) yes latest live code + Xcode on latest OSX lion

Thanks for the reply, appreciate the help.

Cheers
Dale

Re: Submitting to appstore - Application failed code sign ve

Posted: Wed Dec 21, 2011 10:42 am
by macnomad2
You can also use the distribution profile to test locally on your iPad, and I think it is safer to use it from the beginning when you know you want to distribute your app.
Don't forget to delete your app on the iPad before installing it.

Re: Submitting to appstore - Application failed code sign ve

Posted: Wed Dec 21, 2011 10:47 pm
by CALL-151
I share your frustration. A few additional suggestions:

1. Make sure that you're really using your distribution profile and that the Internal App ID that you're using in the LC standalone settings matches the one you used for your distribution profile.

2. If you are building for the iPad, try the steps I outlined at http://forums.runrev.com/viewtopic.php?f=49&t=9293. I just submitted an app update and had to repeat these steps to get Application Loader to accept it.

3. Try using the free AppResigner application and make sure you point it to your distribution profile (sounds like you tried this already). Does AppResigner generate an error message? If so (or perhaps even if it doesn't), try step 4.

4. In the Xcode Organizer window, click on Developer Profile under Library (top left). In the top pane, does your iPhone Distribution certificate issued by the Apple WWDC Authority appear, and does your distribution profile appear in the bottom pane? If not, Click on Provisioning Profiles and make sure Automatic Device provisioning is not checked (at the bottom of the window). Quit Xcode, launch Keychain Assistant and inspect your certificate. Is it valid? If not, try to change it's status to valid and under the Trust disclosure triangle select Use System Defaults.

Re: Submitting to appstore - Application failed code sign ve

Posted: Thu Dec 22, 2011 5:45 am
by colourpixels
Ok, so I finally got it to work (there is a santa claus!) and there only seemed to be one thing I did differently. I created a new distribution provisioning profile and instead of using the full app id (i.e. teamid.com.appname) I just went with teamed.* and exactly same everything else as before and it worked in Application loaded.

So the steps I followed:

0) create an app id in the provisioning portal, use the format teamid.* so it'll be something like EDFGSHSGEY6.*
1) Generate a single certificate using keychain request certificate from a certificate authority. Use your email address associated with your iOS developer account, and the name you signed up using, save to disk option. oh first setting keychain prefs to certificates - OCSP off CRL off. You're going to use this certificate for both dev & distribution.

2) In the provisioning portal click on the development tab, upload your certificate (from wherever you saved it to). Re-click on certificates and your certificate should now be available for download. Download it + the WWDR certificate. Double click on each individually to load them into keychain.

3) in certificates, click on distribution. Do the same as 2), download then doubleclick. (I think the WWDR cert is the same for both so can probably skip that for distribution)

4) switch to the provisioning tab, you need to do the following for both the development and distribution tabs). Click the new profile button. Give it a unique name (like "my App development provisioning" and "my App distribution provisioning"). Select the certificate you uploaded (will be a checkbox with your name if it looks like my screen. Select the App id you created in step 0), then click submit.

5) Click on the provision tab again and your profiles should be available for download. Download both the dev and distro versions to you machine somewhere

6) Open up Xcode and switch to the organiser. Deselect automatic device provisioning. Drag in the two provisioning profiles you downloaded in 5)

7) Open up live code and select the distribution profile in the standalone IOS setting screen. You must also have the same app ID as step 0)

8 ) Create your app, then zip if up by right clicking on it and selecting compress xxxx.app

9) open up application loader, enter your developer credentials. Navigate to your newly created zip file (application loader only accepts a zip file). Hold your breath and click submit. :) it'll take a little while, seems to have quite a few steps it goes through but they're all automatic.

ok hope that helps someone, The important step for the final distribution profile seemed to be using the teamid.* app id. a more specific fully resolved app id worked fine for the development profile, but generated the failed code signed verification error that started this thread when use for the distribution profile. If I stuffed up something in this comment through doing a typo let me know and I'll edit it.

Merry christmas all :)

Dale

Re: Submitting to appstore - Application failed code sign ve

Posted: Thu Dec 22, 2011 3:41 pm
by CALL-151
Congratulations! I suspect that it was the new profile that solved your problem. It wold be very helpful if we could develop a better understanding of why codesign errors occur, rather than just collecting a series of anecdotal "this worked for me" stories. Toward that end, perhaps you could provide some more info. Is/was there a space in your bundle ID (i.e. "teamid.com.app name" vs. "teamid.com.appname")? Could you do a side by side comparison of the info.plist and ResourceRules.plist files for the standalone build that generated the codesign error and the one that didn't? Thanks.

Re: Submitting to appstore - Application failed code sign ve

Posted: Sat Dec 24, 2011 2:14 am
by FireWorx
Thanks for posting your efforts. I am in part commenting to allow me to quickly re locate this message as I antisipate traveling this path myself in the coming weeks. Glad you navigated your way to ap store submission!
Dave