Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 10-07-2010, 12:52 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 284
BioBuff is on a distinguished road
Default Code sign error - xcode looking for a deleted provisioning profile. What to do?

Hi guys,

1. Just upgraded to snow leopard, downloaded 4.1 SDk and apps all work fine in the simulator. Tried testing on a 3.0 device - set deployment target to 3.0. downloaded certificated and profiles and they show up in the organizer just fine. Profile also shows on the device. Deleted old profile, so only one profile is on the device.

2. Did clean build, but it failed. It says code sign error and it is looking for a profile that is old.

3. Before downloading 4.1 SDk, ran terminal and properly deleted the old xcode, so fils and folders are cleaned out.

Maybe I am not setting the profile correctly under info > build. I simply selected the developer name under code sign; saw nothing else to select. This is different than the older SDK where I had to select the actual provisioning profile itself. has this changed?

Any help is appreciated. Thanks.
BioBuff is offline   Reply With Quote
Old 10-07-2010, 03:47 PM   #2 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 284
BioBuff is on a distinguished road
Default

Bump.
BioBuff is offline   Reply With Quote
Old 10-08-2010, 09:01 PM   #3 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 284
BioBuff is on a distinguished road
Default Really need help here --- Anyone?

Quote:
Originally Posted by BioBuff View Post
Bump.
Bump. Thanks.
BioBuff is offline   Reply With Quote
Old 10-09-2010, 09:14 PM   #4 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 8
zerocool5878 is on a distinguished road
Default

Quote:
Originally Posted by BioBuff View Post
Bump. Thanks.
I am having the exact same problem. I have a free app that I would like to submit all done. Just can't get passed this.
zerocool5878 is offline   Reply With Quote
Old 10-10-2010, 01:03 AM   #5 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 284
BioBuff is on a distinguished road
Default Solved

Quote:
Originally Posted by zerocool5878 View Post
I am having the exact same problem. I have a free app that I would like to submit all done. Just can't get passed this.
I solved it. Unfortunately, I do not know exactly what did it, but I did five things in this order:

1. Deleted the provisioning profile for that device in xcode. And also deleted the profile in xcode as well. Closed xCode.

2. Disconnected device from machine and deleted the profile there as well. Then turned off the device and powered it back up.

3. Opened xCode. Reconnected device to the machine ONLY AFTER xCode had re-booted. xCode recognized the device. Then added reinstalled the provisioning profile directly to the device using the organizer window.

4. Confirmed that the deployment target was 3.0 (this is a 3.0 device) and made sure the profile was selected under code signing. Also confirmed profile was on the device.

5. Clean build, Build and Run, and it installed on device and ran fine.

I have now pushing apps for testing to a 3.0 and 4.1 device. Hope this helps you out.
BioBuff is offline   Reply With Quote
Old 10-10-2010, 07:17 AM   #6 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Boston Ma. USA
Posts: 114
dickthedev is on a distinguished road
Default

Quote:
Originally Posted by BioBuff View Post
Hi guys,

1. Just upgraded to snow leopard, downloaded 4.1 SDk and apps all work fine in the simulator. Tried testing on a 3.0 device - set deployment target to 3.0. downloaded certificated and profiles and they show up in the organizer just fine. Profile also shows on the device. Deleted old profile, so only one profile is on the device.

2. Did clean build, but it failed. It says code sign error and it is looking for a profile that is old.

3. Before downloading 4.1 SDk, ran terminal and properly deleted the old xcode, so fils and folders are cleaned out.

Maybe I am not setting the profile correctly under info > build. I simply selected the developer name under code sign; saw nothing else to select. This is different than the older SDK where I had to select the actual provisioning profile itself. has this changed?

Any help is appreciated. Thanks.
Hmmm, I don't think you can use SDK 4.x to test a 3.x device. Someone please correct me if I am wrong
dickthedev is offline   Reply With Quote
Old 10-10-2010, 09:05 AM   #7 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 284
BioBuff is on a distinguished road
Default

Quote:
Originally Posted by dickthedev View Post
Hmmm, I don't think you can use SDK 4.x to test a 3.x device. Someone please correct me if I am wrong
I can correct you since I am doing it. All you do is Info>Build>Deployment>iOS Deployment Target>Set to 3.X

Clean, then Build and Run. I have two devices 3.0 and 4.1 and both testing apps just fine.

I should give credit where it is due. I asked on this board and got the answer here:

http://www.iphonedevsdk.com/forum/ip...g-4-1-sdk.html

Last edited by BioBuff; 10-10-2010 at 09:09 AM.
BioBuff is offline   Reply With Quote
Old 10-10-2010, 04:33 PM   #8 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 8
zerocool5878 is on a distinguished road
Default

Maybe we are not having the same problem mine is when I go to build to get the binary to submit. it fails code signing. If someone has skype and teamviewer and feels like being nice to check my certificates and stuff please add me on skype. I have been working on fixing this issue for 3 days on an app that took me 5 to make.

skype: zerocool5878
zerocool5878 is offline   Reply With Quote
Old 10-10-2010, 09:02 PM   #9 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 284
BioBuff is on a distinguished road
Default

Quote:
Originally Posted by zerocool5878 View Post
Maybe we are not having the same problem mine is when I go to build to get the binary to submit. it fails code signing. If someone has skype and teamviewer and feels like being nice to check my certificates and stuff please add me on skype. I have been working on fixing this issue for 3 days on an app that took me 5 to make.

skype: zerocool5878
You are correct. A different problem. Your issue is your distribution profile.

OK, before you do the build/release, did you go under info>build and change your code signing profile to the distribution one? It will fail code signing if you try build/release with the provisioning profile still checked off.
BioBuff is offline   Reply With Quote
Old 10-10-2010, 11:11 PM   #10 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 8
zerocool5878 is on a distinguished road
Default

Quote:
Originally Posted by BioBuff View Post
You are correct. A different problem. Your issue is your distribution profile.

OK, before you do the build/release, did you go under info>build and change your code signing profile to the distribution one? It will fail code signing if you try build/release with the provisioning profile still checked off.
Yes I have this is really aggravating. Here is everything I did

First I created the request in keychain access
then uploaded that file to Certificates>Development and Certificates>Distrubution
Next I downloaded the wwdc double clicked it and it poped in keychain
Then downloaded both the Dev Cert and the Dist Cer and double click and both poped in keychain. ( with private key under each)

Then i created an App ID

Next I went to Provisioning>Distrubution Clicked New profile
Selected Appstore
Enter a name
Check my certifate
Select the app ID for the drop box
And submit

Now I download the mobile provison and dragged it to xcode so it pops in organizer.

Next i open my project and Duplicate the release
Go to code signing and select iPhone Distrubution: My Name
Then go to properties and enter the app id under identifier

Build and I get

Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)

SO i read to try this

Set the code signing to dont sign
clean all targets
close xcode
delete all directories in the build folder
open xcode
change code signing back
Build

Still fail with same
Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)

----------

So then i thought it was just my app or something

so I made a new project and did the exact same things
and same error
Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)

So I really don't know

I am starting to just want to give up on the app. Its a free app that I created for myself and I wanted to share so i paid the $99 lol to share it and I am lost.


Any help would be great but i seriously feel i have read every tutorial on the subject over the last 3 days I have spend 4-5hrs a day on this.

Last edited by zerocool5878; 10-10-2010 at 11:17 PM.
zerocool5878 is offline   Reply With Quote
Old 10-11-2010, 12:58 AM   #11 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 8
zerocool5878 is on a distinguished road
Default

UPDATE: Ok well someone on youtube said he had a similar problem he teamviewed me and checked everything he said it was totally perfect. He suggested uninstalling xcode and reinstalling it. And it worked! IDK what the deal was but reinstalling xcode worked. Anyone else having this problem could also try this.
zerocool5878 is offline   Reply With Quote
Old 10-11-2010, 11:27 AM   #12 (permalink)
Registered Member
 
Join Date: Oct 2010
Location: Silicon Valley CA
Age: 52
Posts: 6
geowar1 is on a distinguished road
Send a message via AIM to geowar1
Default

First Read the section on "Publishing Your Application for Testing" in the iOS Development Guide: <http://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/iphone_development/145-Distributing_Applications/distributing_applications.html#//apple_ref/doc/uid/TP40007959-CH10-SW1>

If that doesn't help this technote supplements the Development Guide: TN2250: "Understanding and Resolving Code Signing Issues" @ <http://developer.apple.com/iphone/library/technotes/tn2010/tn2250.html>.
geowar1 is offline   Reply With Quote
Old 10-16-2010, 12:46 AM   #13 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 3
firestoke is on a distinguished road
Smile I fix it by the following steps

hi,

I meet the same error after update my iPhone to iOS 4.1. I fix the error by doing the steps in the tutorial wrote by me. Here is the tutorial:

Fix “Code Sign error” error after update iOS

Hope it will solve your problem too.

Last edited by firestoke; 10-16-2010 at 01:15 AM.
firestoke is offline   Reply With Quote
Old 09-08-2011, 01:08 AM   #14 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 2
zaphodtx is on a distinguished road
Default

Quote:
Originally Posted by firestoke View Post
hi,

I meet the same error after update my iPhone to iOS 4.1. I fix the error by doing the steps in the tutorial wrote by me. Here is the tutorial:

Fix “Code Sign error” error after update iOS

Hope it will solve your problem too.
I figured out the same thing for the previous version of Xcode. How in the world do you do the same thing in the new very crappy IDE? There isn't an edit project settings anymore. I like the old interface 100 times better. Apple can be so frustrating!
zaphodtx is offline   Reply With Quote
Old 09-08-2011, 01:37 AM   #15 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 2
zaphodtx is on a distinguished road
Default

Quote:
Originally Posted by zaphodtx View Post
I figured out the same thing for the previous version of Xcode. How in the world do you do the same thing in the new very crappy IDE? There isn't an edit project settings anymore. I like the old interface 100 times better. Apple can be so frustrating!
I found it. You have to select your project in the navigation window. Then you can see the build settings options. That was not obvious to find...
zaphodtx is offline   Reply With Quote
Old 02-29-2012, 08:11 AM   #16 (permalink)
Registered Member
 
Join Date: Apr 2009
Location: Spain
Posts: 52
macpower is on a distinguished road
Default

Quote:
Originally Posted by BioBuff View Post
I solved it. Unfortunately, I do not know exactly what did it, but I did five things in this order:

1. Deleted the provisioning profile for that device in xcode. And also deleted the profile in xcode as well. Closed xCode.

2. Disconnected device from machine and deleted the profile there as well. Then turned off the device and powered it back up.

3. Opened xCode. Reconnected device to the machine ONLY AFTER xCode had re-booted. xCode recognized the device. Then added reinstalled the provisioning profile directly to the device using the organizer window.

4. Confirmed that the deployment target was 3.0 (this is a 3.0 device) and made sure the profile was selected under code signing. Also confirmed profile was on the device.

5. Clean build, Build and Run, and it installed on device and ran fine.

I have now pushing apps for testing to a 3.0 and 4.1 device. Hope this helps you out.
I've had the same problem with a old profile that I've deleted... after days trying to find how to solve in my case I have solved just changing in the target preferences to "iPhone developer" in automatic..., and when I've tried to run xCode has got it the right one and has launched in my device
__________________
Apps:

Check my apps, I would like get your feedback! if you want test it send me a mp and I'll try send you a promo code!

Save now: Save money easily with your iPhone!

ItAlertsMe: Alarm to prevent the theft
macpower is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 386
16 members and 370 guests
AragornSG, ChrisYates, coolman, davejas69, givensur, hussain1982, iAppDeveloper, jbro, Kryckter, locombiano89, Mah6447, Meoz, stanny, stevenkik, Tomsky, WeaselPig
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,646
Threads: 94,111
Posts: 402,862
Top Poster: BrianSlick (7,990)
Welcome to our newest member, locombiano89
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:46 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0