Discussion Forums  >  Uncategorized

Replies: 13    Views: 447

Jo-Ve
Apple Fan
Profile
Posts: 8
Reg: May 22, 2011
location unknow...
80
06/29/11 10:56 PM (14 years ago)

I can't release my app

As i click on build and run there stands: Codesing build/Release-iphoneos/dutchtv.app !Command/usr/bin/codesing failedwith exit code 1 Can someone help me?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/29/11 11:16 PM (14 years ago)
I can't even understand what you're asking but a one-second Google search produced this: http://stackoverflow.com/questions/1090288/usr-bin-codesign-failed-with-exit-code-1
 
Jo-Ve
Apple Fan
Profile
Posts: 8
Reg: May 22, 2011
location unknow...
80
like
06/30/11 01:21 AM (14 years ago)
I have solved it but now there stands: Application failed codesign verification. The signature was invalid, or it was not singed with a apple submission certificate. What must I do?
 
javooooo
buzztouch Evangelist
Profile
Posts: 719
Reg: Jun 17, 2011
Sydney, Austral...
18,490
like
06/30/11 01:24 AM (14 years ago)
Set up your development and distribution certificates and provisioning profiled in the Apple Devdloper Console. Download and install them.
 
Jo-Ve
Apple Fan
Profile
Posts: 8
Reg: May 22, 2011
location unknow...
80
like
06/30/11 02:26 AM (14 years ago)
I have do that already!
 
Stefan
buzztouch Evangelist
Profile
Posts: 558
Reg: Dec 21, 2010
Sweden
14,780
like
06/30/11 05:11 AM (14 years ago)
@ Jo-Ve. It's very important that you do that in the right order. As the error message says The signature was invalid, or it was not singed with a apple submission certificate. Something happend when you did install the certs. Clean your project Reinstall your certs Make sure you're using the right certs when building Build agian. http://stackoverflow.com/questions/4142435/application-failed-codesign-verification-the-signature-was-invalid-or-it-was-no
 
Jo-Ve
Apple Fan
Profile
Posts: 8
Reg: May 22, 2011
location unknow...
80
like
06/30/11 05:36 AM (14 years ago)
@Stefan What is the right order of the certificates?
 
Stefan
buzztouch Evangelist
Profile
Posts: 558
Reg: Dec 21, 2010
Sweden
14,780
like
06/30/11 07:08 AM (14 years ago)
A good question. I wish I could tell you the exact right order, but when I had the same issues as you're having with the provisoning/cert part of the building part I erased all my certs from Keychain, in the Xcode organiser window aswell and started from the top. I'll try to find the site that had a step-by-step solutions for this error. I'm not on the right computer now. Until then good luck. You will solve this. /Stefan
 
Stefan
buzztouch Evangelist
Profile
Posts: 558
Reg: Dec 21, 2010
Sweden
14,780
like
07/01/11 12:55 AM (14 years ago)
Jo-Ve did you manage to fix your errors?
 
Jo-Ve
Apple Fan
Profile
Posts: 8
Reg: May 22, 2011
location unknow...
80
like
07/02/11 12:00 PM (14 years ago)
No, I have try very much tings!
 
Stefan
buzztouch Evangelist
Profile
Posts: 558
Reg: Dec 21, 2010
Sweden
14,780
like
07/02/11 02:19 PM (14 years ago)
First of all check your Certificate. Is it DISTRIBUTION or DEVELOPER your are signing your app with for submission to Apple? They are different. For each app you must have a Developer Certificate And Developer Provisioning Profile in order to put your app into your iphone/ipad/ipod. BUT if you want to send the app to Apple you must use the Distribution Certificate and Distribution Provisioning Profile to sign your app. Example: myApp Developer Certificate + Developer Provisioning Profile + AppID - signs the app for developing and testing on iphone myApp Distribution Certificate + Distribution Provisioning Profile + AppID - signs the app for Appstore Ok? Follow these steps: STEP1 A: Remove Developer and Distribution Certificates from your keychain. You can do this from xcode/organiser. B: You must also remove the Distribution Provisioning Profile as well as the Developer Provisioning Profile that you are using for the particular app you're working with. C: Clean your App in Xcode D: Remove the code signing in Target and Project settings to Dont code sign. E: Exit Xcode. STEP2 Start KeyChain 1. In your Applications folder, open the Utilities folder and launch Keychain Access. 2. In the Preferences menu, set Online Certificate Status Protocol (OSCP) and Certificate Revocation List (CRL) to “Off”. 3. Choose Keychain Access -> Certificate Assistant -> Request a Certificate from a Certificate Authority. Confirm that you are selecting “Request a Certificate From a Certificate Authority...” and not selecting “Request a Certificate From a Certificate Authority with <Private Key>…” 4. In the User Email Address field, enter your email address. Make sure that the email address entered matches the information that was submitted when you registered as an iOS Developer. 5. In the Common Name field enter your name. The name entered must match the information that was submitted when you registered as an iOS Developer. 6. No CA (Certificate Authority) Email Address is required. 7. Select the ‘Saved to Disk’ radio button and if prompted, select ‘Let me specify key pair information’ and click ‘Continue’. 8. If ‘Let me specify key pair’ was selected, specify a file name and click ‘Save’. In the following screen select ‘2048 bits’ for the Key Size and ‘RSA’ for the Algorithm. Click ‘Continue’. 9. The Certificate Assistant will create a CSR file on your desktop. STEP3 Go to Provisioning Portal. In left menu -go to Certificates->Development Tab 1. Press the REVOKE button. This means that you are resetting the connections between your Developer Certificates, AppID'd and Developer Profiles. Nothing will be erased. Only the connections. And we want to repair them. 2. Click Development Tab again (in order to refresh the page) 3. You will get a page with the Create a iphone Development Certificate. 4. Scroll down 5. Press the Choose File and locate your CSR file on your desktop you created. 6. Press submit. STEP4 Get the Development Certificate to your computer 1. In the same window, Click Development Tab again (in order to refresh the page) 2. NOW click the DOWNLOAD button to the RIGHT. This will download a Development Certificate to your computer. 3. On your local machine, double-click the downloaded .cer file to launch Keychain Access and install your certificate. Now you have the Development Certificate in your computer. But in order to get your app to your iphone you must do the following: STEP5 In Provisioning Portal 1. Click Provisioning (in left menu) ->Development Tab. 2. Find your apps Development Profile (i should be marked with INVALID now - since you revoked the certs) 3. Click MODIFY 4. Choose the APP ID that you want to associate this Development Profile with. Also chose the devices if that is not already checked. 5. Press SUBMIT 6. Click Development Tab again (in order to refresh the page) 7. Now your Development Profile should be Active. 8. Click DOWNLOAD 9. Double click the downloaded file. Now you have the Development Profile together connected with your AppID in your computer. In order to get your app to your phone do the following: STEP6 Start Xcode 1. Project settings - scroll down to Sign With and find your Development Profile. 2. Chose Target - do the same settings 3. Make sure your phone i connected 4. Choose build and run This is the easy part. Now come the hard part. STEP7 Do exact as in Step 3 - BUT Choose the Distribution TAB Go to Provisioning Portal. In left menu -go to Certificates->DISTRIBUTION Tab 1. Press the REVOKE button. This means that you are resetting the connections between your DISTRIBUTION Certificates, AppID'd and DISTRIBUTION Profiles. Nothing will be erased. Only the connections. And we want to repair them. 2. Click DISTRIBUTION Tab again (in order to refresh the page) 3. You will get a page with the Create a iphone DISTRIBUTION Certificate. 4. Scroll down 5. Press the Choose File and locate your CSR file on your desktop you created. THE SAME FILE AGAIN. 6. Press submit. STEP8 Get the DISTRIBUTION Certificate to your computer 1. In the same window, Click DISTRIBUTION Tab again (in order to refresh the page) 2. NOW click the DOWNLOAD button to the RIGHT. This will download a DISTRIBUTION Certificate to your computer. 3. On your local machine, double-click the downloaded .cer file to launch Keychain Access and install your certificate. Now you have the DISTRIBUTION Certificate in your computer. If you check in Keychain you should have two profiles. DISTRIBUTION and DEVELOPMENT In order to get your app to APPSTORE you must do the following: STEP9 In Provisioning Portal 1. Click Provisioning (in left menu) ->DISTRIBUTION Tab. 2. Find your apps DISTRIBUTION Profile (it should ALOS be marked with INVALID - since you revoked these certs as well) 3. Click MODIFY 4. Choose the APP ID that you want to associate this DISTRIBUTION Profile with. You shouldn't be able to choose any devices here. 5. Press SUBMIT 6. Click DISTRIBUTION Tab again (in order to refresh the page) 7. Now your DISTRIBUTION Profile should be Active. 8. Click DOWNLOAD 9. Double click the downloaded file. Now you have the DISTRIBUTION Profile together connected with your AppID in your computer. In order to BUILD your app for submission do the following: STEP10 Start Xcode 1. Open your app and Duplicate the “Release” configuration in the Configurations pane of the project's Info panel. Rename this new configuration “Distribution”. 2. In the Target Info window, select the ‘Build’ tab and set the ‘Configuration’ to ‘Distribution’ 3. In the Target Info window, navigate to the ‘Build’ pane. Click the ‘Any iOS Device’ pop-up menu below the ‘Code Signing Identity’ field and select the iOS DISTRIBUTION Certificate AND DISTRIBUTION Provisioning Profile pair you wish to sign and install your code with. Your iOS DISTRIBUTION certificate will be in BOLD with the Provisioning Profile associated with it in grey above. 4. In the Project window, select the Distribution Active Configuration from the overview popup and set the Active SDK to the desired Device. 5. Click ‘Build’. And viola you should have a app ready to be submitted to apple. Good luck and let me know how it goes. BR/Stefan
 
Stefan
buzztouch Evangelist
Profile
Posts: 558
Reg: Dec 21, 2010
Sweden
14,780
like
07/02/11 02:25 PM (14 years ago)
A tip is to name the Development Provisioning Profiles to [TestProfile for *appname*] in order to distinguish and not mix the names and baptise the developer profiles to [Final or SubmissionProfile for *appname*] When I did that it all became clear to me.
 
Jo-Ve
Apple Fan
Profile
Posts: 8
Reg: May 22, 2011
location unknow...
80
like
07/04/11 12:27 AM (14 years ago)
Thank you very much! I have uploaded it to the App Store.
 
Stefan
buzztouch Evangelist
Profile
Posts: 558
Reg: Dec 21, 2010
Sweden
14,780
like
07/04/11 03:03 AM (14 years ago)
I'm glad it worked out for you. Good luck now with your app. Br Stefan
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.