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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-20-2009, 02:59 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 191
Default updated to 3.0, now "Provisioning profile can't be found"

Here we go again...

When I try to build to the device I get "Code Sign error: Provisioning Profile '5AG39DDX-....." can't be found.

In Organizer, the Provisioning Profile there has a Profile Identifier that is completely different from the one Xcode is trying to find, thus the problem. How do I get Xcode to look at my actual Provisioning Profile instead of looking for one of it's imaginary x-girlfriend's profiles?

man I love dealing with this every other day for hours...
SteveY is offline   Reply With Quote
Old 06-20-2009, 03:59 AM   #2 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 117
Default

Quote:
Originally Posted by SteveY View Post
Here we go again...

When I try to build to the device I get "Code Sign error: Provisioning Profile '5AG39DDX-....." can't be found.

In Organizer, the Provisioning Profile there has a Profile Identifier that is completely different from the one Xcode is trying to find, thus the problem. How do I get Xcode to look at my actual Provisioning Profile instead of looking for one of it's imaginary x-girlfriend's profiles?

man I love dealing with this every other day for hours...
Set it to the correct one in your project properties or re-upload your old provisioning file or something.
stuffradio is offline   Reply With Quote
Old 06-20-2009, 04:11 AM   #3 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 191
Default

Quote:
Set it to the correct one in your project properties or re-upload your old provisioning file or something.
I'd love to, but I don't see anything that says "Provisioning Profile" when I double click the Target app and click the "Properties" tab. Can you tell me where to find this elusive Provisioning Profile field?
SteveY is offline   Reply With Quote
Old 06-20-2009, 05:05 AM   #4 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 247
Default

Yeah, the same thing happened to me after I upgraded to SDK 3.0. I had to delete my provisioning certificate and regenerate it from my dev account. You'll need to delete the old and add the new certificate to the keychain and to your iPhone. Afterwards, do a clean-all of your builds and re-build your code. It should work then.

Last edited by c0der; 06-20-2009 at 05:09 AM.
c0der is offline   Reply With Quote
Old 06-20-2009, 02:01 PM   #5 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 191
Default

Yeah, that would only be about the 20th time I've had to do that, and that's not an exaggeration (thanks Apple).

If I create a new test project, I can build to the device. It's just this current project that somehow is looking for an old profile. There has to be way to change that in Xcode. Where is that setting?????
SteveY is offline   Reply With Quote
Old 06-20-2009, 09:20 PM   #6 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 191
Default

I just went through the entire process again (make that 21 times now). Created all new certificates and profiles. Everything is "green" in Organizer, all keys are installed.

Xcode still says "Code Sign Error: Provisioning profile 'blah blah blah' can't be found, yet I can see one clearly in Organizer, with a shiny green circle next to it. It has a different identifier number than the one Xcode is claiming it can't find. I have cleaned. I have deleted the Build folder. I have summoned Bill Gates.

Any more suggestions?
SteveY is offline   Reply With Quote
Old 06-21-2009, 11:01 AM   #7 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 238
Default

Quote:
Originally Posted by SteveY View Post
I just went through the entire process again (make that 21 times now). Created all new certificates and profiles. Everything is "green" in Organizer, all keys are installed.

Xcode still says "Code Sign Error: Provisioning profile 'blah blah blah' can't be found, yet I can see one clearly in Organizer, with a shiny green circle next to it. It has a different identifier number than the one Xcode is claiming it can't find. I have cleaned. I have deleted the Build folder. I have summoned Bill Gates.

Any more suggestions?
In your project settings, when you choose the popup for setting the provisioning profile what happens if you select 'other'? I found that I had to somewhat manually force the proper signature a few times.

But I have never, even after upgrading to SDK 3.0 and the new iPhone 3GS had to redo my developer certificate. I can't imagine why that would be necessary. But I did notice that I had several settings in XCode that were not preserved when I upgraded and that has caused me some pain.
dapis is offline   Reply With Quote
Old 07-09-2009, 09:08 PM   #8 (permalink)
New Member
 
Join Date: Apr 2009
Posts: 28
Default

I'm still having troubles with this. I'm still at the point where SteveY was. Anyone figure this out?
Csprocket777 is offline   Reply With Quote
Old 07-09-2009, 09:28 PM   #9 (permalink)
New Member
 
Join Date: Apr 2009
Posts: 28
Talking SOLVED

Ok. I figured it out (for me at least)

In XCode, in the "Groups & Files" pane, expand "Targets" and double-click on your app's target.

This will bring up the Info pane for your target. In the "Build" section, check the "code signing" section for any old profiles. I found that it was building to an old profile there.
Csprocket777 is offline   Reply With Quote
Old 07-23-2009, 08:36 PM   #10 (permalink)
Registered Member
 
alexy's Avatar
 
Join Date: Jul 2009
Location: Melbourne, Aus
Posts: 199
Thumbs up

Quote:
Originally Posted by Csprocket777 View Post
Ok. I figured it out (for me at least)

In XCode, in the "Groups & Files" pane, expand "Targets" and double-click on your app's target.

This will bring up the Info pane for your target. In the "Build" section, check the "code signing" section for any old profiles. I found that it was building to an old profile there.
Spot on for me as well so many thanks for this Csprocket777.. Everything else was good except for this vital severed part
alexy is offline   Reply With Quote
Old 08-18-2009, 07:21 AM   #11 (permalink)
dyn
Registered Member
 
Join Date: Aug 2009
Posts: 1
Default THANKS!

Quote:
Originally Posted by Csprocket777 View Post
Ok. I figured it out (for me at least)

In XCode, in the "Groups & Files" pane, expand "Targets" and double-click on your app's target.

This will bring up the Info pane for your target. In the "Build" section, check the "code signing" section for any old profiles. I found that it was building to an old profile there.
You helped me so much
I even registered to this forum just to say thanks!

THANKS!!
dyn is offline   Reply With Quote
Old 09-11-2009, 08:09 PM   #12 (permalink)
Registered Member
 
Join Date: Sep 2009
Location: Toronto
Posts: 23
Default

Quote:
Originally Posted by Csprocket777 View Post
Ok. I figured it out (for me at least)

In XCode, in the "Groups & Files" pane, expand "Targets" and double-click on your app's target.

This will bring up the Info pane for your target. In the "Build" section, check the "code signing" section for any old profiles. I found that it was building to an old profile there.
Saved me a few hours as well. Thanks!
Darkin is offline   Reply With Quote
Old 09-22-2009, 10:52 PM   #13 (permalink)
Member
 
tomh's Avatar
 
Join Date: Sep 2008
Location: Detroit, MI
Posts: 31
Default

+1

That did the trick for me as well. Thanks for the post.
__________________
--
tom
Cluebucket Apps
(username - h)@cluebucket.com
tomh is offline   Reply With Quote
Old 11-06-2009, 10:38 AM   #14 (permalink)
Registered Member
 
pieter78's Avatar
 
Join Date: Apr 2009
Location: Maastricht, The Netherlands
Posts: 13
Default

Quote:
Originally Posted by Csprocket777 View Post
Ok. I figured it out (for me at least)

In XCode, in the "Groups & Files" pane, expand "Targets" and double-click on your app's target.

This will bring up the Info pane for your target. In the "Build" section, check the "code signing" section for any old profiles. I found that it was building to an old profile there.
Also from my side: MANY MANY thanks!! This solved an issue that I could nog solve manually in the project file. After a long time it seems to work now! Great...

Blog item here :-)

Pieter
__________________
DigitalNeurosurgeon.com
pieter78 is offline   Reply With Quote
Old 12-30-2009, 01:31 PM   #15 (permalink)
Chris Robertson
 
Join Date: Dec 2009
Posts: 1
Default

Quote:
Originally Posted by Csprocket777 View Post
Ok. I figured it out (for me at least)

In XCode, in the "Groups & Files" pane, expand "Targets" and double-click on your app's target.

This will bring up the Info pane for your target. In the "Build" section, check the "code signing" section for any old profiles. I found that it was building to an old profile there.
Strange, this didn't work for me, as it seems to have for everyone else.

For me, the error began when I renewed my provisioning profile. To be sure, I removed all existing provisioning profiles from both my device, and the xCode organizer.

I downloaded my renewed profile, installed to xCode with device plugged in (but still I had to manually drag the new profile to the device).

The project in question is a published app, and hasn't changed a byte since its final distribution build.

I can see the new profile installed in the device, and in the organizer. I can once again run the existing build of the app on the device.

In the target code signing options, I have tried every listed profile,

I can build to the simulator, but not to the device, even when I set the target code-signing options to "Do not code sign", I immediately get the error.

I'm stumped!
voidstar is offline   Reply With Quote
Old 01-07-2010, 10:07 PM   #16 (permalink)
mwt
Registered Member
 
mwt's Avatar
 
Join Date: Oct 2008
Location: Berkeley, CA
Posts: 49
Default Thank you!

Worked for me. Thanks for sharing.
mwt is offline   Reply With Quote
Old 01-12-2010, 01:53 PM   #17 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 2
Default

I found this in a search and it worked for me:
Scraps of Dosheey: iPhone Code Sign Error : Provisioning Profile Can't be Found!


Quote:
Originally Posted by voidstar View Post
Strange, this didn't work for me, as it seems to have for everyone else.

For me, the error began when I renewed my provisioning profile. To be sure, I removed all existing provisioning profiles from both my device, and the xCode organizer.

I downloaded my renewed profile, installed to xCode with device plugged in (but still I had to manually drag the new profile to the device).

The project in question is a published app, and hasn't changed a byte since its final distribution build.

I can see the new profile installed in the device, and in the organizer. I can once again run the existing build of the app on the device.

In the target code signing options, I have tried every listed profile,

I can build to the simulator, but not to the device, even when I set the target code-signing options to "Do not code sign", I immediately get the error.

I'm stumped!
Bunglero is offline   Reply With Quote
Old 01-26-2010, 01:28 PM   #18 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 5
Default

Make sure you have the Configuration dropdown in the target info window set to debug or release or whatever you are building for.
helloniklas is offline   Reply With Quote
Old 01-26-2010, 01:31 PM   #19 (permalink)
iPhone SDK fanatics!
 
Join Date: Aug 2009
Location: Malaysia
Posts: 370
Default

Quote:
Originally Posted by helloniklas View Post
Make sure you have the Configuration dropdown in the target info window set to debug or release or whatever you are building for.
Yup, my experience after the 3.0 upgrade is similar to this one. It was due to PROJECT SETTING's DEBUG/DISTRIBUTION's code sign thing.
__________________
KennyChong
iPhone SDK Fanatic!
KennyChong is offline   Reply With Quote
Old 01-29-2010, 03:51 AM   #20 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 9
Default

Quote:
Originally Posted by Csprocket777 View Post
Ok. I figured it out (for me at least)

In XCode, in the "Groups & Files" pane, expand "Targets" and double-click on your app's target.

This will bring up the Info pane for your target. In the "Build" section, check the "code signing" section for any old profiles. I found that it was building to an old profile there.

Thank you, thank you, thank you!!! This was driving me crazy but now it compiles perfectly...
dkla is offline   Reply With Quote
Old 03-15-2010, 06:26 PM   #21 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 129
Default

Quote:
Originally Posted by dkla View Post
Thank you, thank you, thank you!!! This was driving me crazy but now it compiles perfectly...
Old thread, I know... just wanted to add... I tried everything in this thread, with no luck. Then, I changed my projects settings to compile with "don't code sign". Cleaned and built the project. (Of course, it wouldn't install on my iphone.) Then I changed it back to the normal dev profile and that fixed it.

I think the problem in my case is that my dev profile expired, so I chose to "renew" it in itunes connect. When you do that, the dev profile name of course does not change. So, when you attempt to build with a renewed profile, I'm guessing xcode gets confused and still thinks it's dealing with the expired profile (even though I deleted the expired profile, cleaned and rebuilt, and updated the project settings.)
gonk is offline   Reply With Quote
Old 03-17-2010, 02:04 AM   #22 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 247
Default

None of the above suggestions fixed my problem with Xcode. After a lot of searching, I found the following which worked for me. I thought I'd post it in hopes that it might help someone else:

--------------------------------------------------------------

My assumption was that once Xcode saw that the old profile didn’t exists anymore it would switch over and use the new one. I cleaned all targets and built again. This time I was treated to a different error: ”Code Sign error: Provisioning profile ‘3E6AA725-6534-46F8-B9CE-D19AC9FD854B’ can’t be found”

After a bit of Googling I discovered that Xcode stores the ID of the provisioning profile in its project.pbxproj file. This discovery led me to the fix:

1. Close your Xcode project
2. Navigate to your project folder in the Finder
3. Right click on your .xcodeproj file and ‘Show Package Contents’
4. Drag the project.pbxproj file to Xcode (or any plain text editor)
5. Perform a search for the term ‘provision’ to find the PROVISIONING_PROFILE entry.
6. Copy the existing profile ID and paste it into the find field of a find and a replace dialog.
7. Open up the Organizer window (Window menu > Organizer) and navigate to your new profile under IPHONE DEVELOPMENT > Provisioning Profiles
8. Click on your provisioning profile and copy its Profile Identifier
9. Paste the string into the replace field in your open find and replace dialog.
10. Replace all instances of the identifier, save the file, close it, and reopen your Xcode project.
11. That should do it, build and go to run your app on your new device.
c0der is offline   Reply With Quote
Old 04-22-2010, 12:34 AM   #23 (permalink)
iPhone Developer
 
Join Date: Jan 2009
Location: India , Pune
Posts: 44
Send a message via Skype™ to ameya
Thumbs up

Cool
Quote:
Originally Posted by Csprocket777 View Post
Ok. I figured it out (for me at least)

In XCode, in the "Groups & Files" pane, expand "Targets" and double-click on your app's target.

This will bring up the Info pane for your target. In the "Build" section, check the "code signing" section for any old profiles. I found that it was building to an old profile there.
__________________
Sr Software Programmer

Solutions to problems
ameya is offline   Reply With Quote
Old 05-05-2010, 04:32 PM   #24 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 17
Default

HERE IS THE SOLUTION ABOUT 75% OF THE TIME:

YOU MUST NOT ENTER:

49776ZQRBG.con.whatever.stuff

in your plist. in fact you must enter:

con.whatever.stuff

that's it. it's incredibly confusing because if you enter the wrong one (try it), it still WORKS PERFECTLY IN "PROJECT" settings. AND the message in TARGET settings is mindblowingly confusing, poorly worded, making you think you have a perhaps private key error.

(PS do not literally enter "con.whatever.stuff", that is just my example. If you don't know what to enter there, you are buggered, hire a freelancer.)
FatFatto is offline   Reply With Quote
Old 10-17-2010, 07:07 PM   #25 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 1
Default This did it - thank you very much!!

Quote:
Originally Posted by Csprocket777 View Post
Ok. I figured it out (for me at least)

In XCode, in the "Groups & Files" pane, expand "Targets" and double-click on your app's target.

This will bring up the Info pane for your target. In the "Build" section, check the "code signing" section for any old profiles. I found that it was building to an old profile there.


Csproket777 - I struggled with this on and off for days. The Apple provisioning process and device installation is very difficult. I registered as a member of this forum simply to say thank you for sharing this info!
Anthony
aalcamo 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
» Stats
Members: 157,873
Threads: 88,917
Posts: 379,300
Top Poster: BrianSlick (7,072)
Welcome to our newest member, monadarn8
Powered by vBadvanced CMPS v3.1.0

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