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 02-02-2009, 05:11 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,534
Send a message via ICQ to smithdale87 Send a message via AIM to smithdale87 Send a message via Skype™ to smithdale87
Default Code-sign error

I opened up an old project today, did some modifications to the code, and when I try and build it, I get a fricken code-sign error*:

I made sure that the provisioning profile I build with is also installed on the device.

Anyone have any ideas?
Code:
Line Location Tool:0: CodeSign error: a valid provisioning profile is required for product type 'Application' in SDK 'Device - iPhone OS 2.2.1'
smithdale87 is offline   Reply With Quote
Old 02-02-2009, 05:13 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 31
Default

Run 'Keychain Access' and see if your dev/dist certs may have expired.

Last edited by AppStore-Diagnostics; 02-02-2009 at 05:19 PM.
AppStore-Diagnostics is offline   Reply With Quote
Old 02-02-2009, 05:17 PM   #3 (permalink)
Registered Member
 
RickMaddy's Avatar
 
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,122
Default

Sexual preferences aside have you verified that your certificates haven't expired. Mine all expired a few days ago. Took some work to get everything all working again.

Run 'Keychain Access' and see if your dev/dist certs may have expired.
RickMaddy is offline   Reply With Quote
Old 02-02-2009, 05:51 PM   #4 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,534
Send a message via ICQ to smithdale87 Send a message via AIM to smithdale87 Send a message via Skype™ to smithdale87
Default

Lol @ the title was edited :-D

Anyways, thanks for the tip. My cert expired on the 16th of Jan.

As a side note, when I build in "Release" mode, it works even though the cert is expired. Why?
smithdale87 is offline   Reply With Quote
Old 02-02-2009, 05:56 PM   #5 (permalink)
Registered Member
 
RickMaddy's Avatar
 
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,122
Default

Verify which cert is configured for a Release build. It's possible it's using a different, non-expired cert.
RickMaddy is offline   Reply With Quote
Old 03-01-2009, 06:14 PM   #6 (permalink)
Registered Member
 
tkilmer's Avatar
 
Join Date: May 2008
Posts: 583
Default

Ok...Bringing this up again. My certificates expired a while back and I got them working again. On only one project does my application get this error. It is driving me insane. I have redownloaded all of my provisioning profiles and it just will not compile. No other project has these issues. Any suggestions?
tkilmer is offline   Reply With Quote
Old 03-03-2009, 09:45 PM   #7 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 1
Default CodeSign error in one device debug project

Quote:
Originally Posted by tkilmer View Post
Ok...Bringing this up again. My certificates expired a while back and I got them working again. On only one project does my application get this error. It is driving me insane. I have redownloaded all of my provisioning profiles and it just will not compile. No other project has these issues. Any suggestions?
I have similar issue:

I upgraded to 2.2.1 and matching SDK. Then I noticed that one of my certs was expired. Got the new cert and made a new profile to match. All is well with other projects running in debug mode but the project that I got the original error on cannot run debug on the device. Release is fine.

Line Location Tool:0: CodeSign error: a valid provisioning profile is required for product type 'Application' in SDK 'Device - iPhone OS 2.2.1'

I tried deleting the project and getting a newer version from another Mac. Same error message. I'm not sure what needs to be cleaned out to get rid of this.
CoolDoood is offline   Reply With Quote
Old 03-13-2009, 01:17 AM   #8 (permalink)
Registered Member
 
brendand's Avatar
 
Join Date: Aug 2008
Posts: 223
Default

I'm having the same issue with my app now. Ugh. My certificates recently expired and now I get the dreaded CodeSign error.

I regenerated my certificates and re-downloaded the provisioning profiles to no avail. This really sucks.

Any ideas?

Thanks,

Quote:
Originally Posted by CoolDoood View Post
I have similar issue:

I upgraded to 2.2.1 and matching SDK. Then I noticed that one of my certs was expired. Got the new cert and made a new profile to match. All is well with other projects running in debug mode but the project that I got the original error on cannot run debug on the device. Release is fine.

Line Location Tool:0: CodeSign error: a valid provisioning profile is required for product type 'Application' in SDK 'Device - iPhone OS 2.2.1'

I tried deleting the project and getting a newer version from another Mac. Same error message. I'm not sure what needs to be cleaned out to get rid of this.
brendand is offline   Reply With Quote
Old 03-13-2009, 01:59 AM   #9 (permalink)
Registered Member
 
brendand's Avatar
 
Join Date: Aug 2008
Posts: 223
Default

Ok, I finally got it working. Phew!

Had to edit the project.pbxproj file and delete all occurrences of the PROVISIONING_PROFILE lines

Then I reselected my provisioning profiles in my targets.


Quote:
Originally Posted by brendand View Post
I'm having the same issue with my app now. Ugh. My certificates recently expired and now I get the dreaded CodeSign error.

I regenerated my certificates and re-downloaded the provisioning profiles to no avail. This really sucks.

Any ideas?

Thanks,
brendand 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: 433
13 members and 420 guests
bev6a8hl, beyondstop, Edsilmars, HowEver, Hyde, john234ny, linkmx, MozyMac, phillipie99, pill5b3rry, pochuang, pufftissue, Rudy
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 157,847
Threads: 88,913
Posts: 379,291
Top Poster: BrianSlick (7,072)
Welcome to our newest member, bev6a8hl
Powered by vBadvanced CMPS v3.1.0

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