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 Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 02-10-2011, 12:42 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default Code-signing problem

I'm loosing my mind!
First of all,let me just say that i'm a total newb when it comes to this but i've managed to develop an app for my school which I now want to publish.
So I followed all the guides in the provisioning portal and tried to build but get a warning:
Code:
 Application failed codesign verification.  The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)
OK.So what have I done?
1.created a distribution certificate and installed it in my keychain
2.Created an AppID with * as suffix
3.created a distribution provisioning profile and installed by dragging it to xcode icon
4.created a distribution configuration in xcode with my distribution certificate as code signing in both project and target.(however it looks like this:

It feels like I tried every help article I have found and still this problem.
I tested my app on a jailbroken iphone before and used dont codesign but I think I have removed all the traces of this.
I would really appreciate some help

Last edited by teslakiiing; 02-22-2011 at 01:25 PM.
teslakiiing is offline   Reply With Quote
Old 02-10-2011, 02:39 PM   #2 (permalink)
Super Moderator
 
Join Date: Oct 2009
Location: San Diego, CA
Posts: 1,586
JasonR is on a distinguished road
Default

Unfortunately, the only thing I've ever seen help is to go through all the "How To" steps on the iOS Provisioning profile carefully. You might also want to delete your existing certificate and start over.

Sadly, I've never seen anyone figure out anyway to know what went wrong. The error messages from Apple are just not helpful enough.

I'd love it if someone proved me wrong, though.
JasonR is offline   Reply With Quote
Old 02-10-2011, 03:06 PM   #3 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default

Quote:
Originally Posted by JasonR View Post
Unfortunately, the only thing I've ever seen help is to go through all the "How To" steps on the iOS Provisioning profile carefully. You might also want to delete your existing certificate and start over.

Sadly, I've never seen anyone figure out anyway to know what went wrong. The error messages from Apple are just not helpful enough.

I'd love it if someone proved me wrong, though.
The annoying thing is that I recon I have done everything exactly like the "how to" and even tried revoking my certificates and deleting all my profiles several times.
Should I perhaps try reinstalling xcode to surely remove the jailbreaking settings(if they even matter)?
teslakiiing is offline   Reply With Quote
Old 02-10-2011, 03:54 PM   #4 (permalink)
Registered Member
 
simplyDusty's Avatar
 
Join Date: Jan 2011
Posts: 158
simplyDusty is on a distinguished road
Default

Are you making sure that it is building for Device and not Simulator? That's happened to me a few times
simplyDusty is offline   Reply With Quote
Old 02-10-2011, 08:30 PM   #5 (permalink)
Dr. Gerbil
 
1337Skittles's Avatar
 
Join Date: Aug 2010
Location: Kentucky
Posts: 129
1337Skittles is on a distinguished road
Default

i was inthe EXACT boat as you judging by your screenshot, your ios profiles arent showing up properly, I uninstalled, then reinstalled xcode and my problems went away. I advise you to do the same.

because you profiles are supposed to show up under a gray name of your app. when you reinstall you will see what I mean.
1337Skittles is offline   Reply With Quote
Old 02-11-2011, 12:20 AM   #6 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default

Quote:
Originally Posted by simplyDusty View Post
Are you making sure that it is building for Device and not Simulator? That's happened to me a few times
yes I have it on device and distribution as active.

I will try to reinstall xcode today and see if it works.
teslakiiing is offline   Reply With Quote
Old 02-11-2011, 01:33 AM   #7 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default

Quote:
Originally Posted by 1337Skittles View Post
i was inthe EXACT boat as you judging by your screenshot, your ios profiles arent showing up properly, I uninstalled, then reinstalled xcode and my problems went away. I advise you to do the same.

because you profiles are supposed to show up under a gray name of your app. when you reinstall you will see what I mean.
but should i just reinstall xcode or the sdk to?
Code:
sudo <Xcode>/Library/uninstall-devtools --mode=all
Found this to uninstall xcode. right or wrong?
teslakiiing is offline   Reply With Quote
Old 02-11-2011, 02:09 PM   #8 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default

Quote:
Originally Posted by teslakiiing View Post
but should i just reinstall xcode or the sdk to?
Code:
sudo <Xcode>/Library/uninstall-devtools --mode=all
Found this to uninstall xcode. right or wrong?
I used the command above to uninstall xcode then rebooted. I downloaded xcode and sdk and installed it.Rebooted and created new certficates and profiles and installed according to the "how to". The profiles showed in gray(yeah!) and when I built it successfully validated the code!

I will try using adhoc tomorrow. Thanks for the help.Hopefully people with this problem will succeed by reinstalling.
teslakiiing is offline   Reply With Quote
Old 02-12-2011, 09:55 AM   #9 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 1
etrusco69 is on a distinguished road
Default Sdk problem

Hi everyone,
I install sdk4.3 on my machine and now when I'm trying to send the application to apple i get an error.
This version of sdk doesnt allow you to send it.
Do you think, I can unistall Xcode completely with any sdk and reinstall it?
Otherwise there's any other way to send the app?
Thanks Giuliano
etrusco69 is offline   Reply With Quote
Old 02-14-2011, 06:59 PM   #10 (permalink)
Registered Member
 
87vert's Avatar
 
Join Date: Sep 2010
Location: Pittsburgh
Posts: 172
87vert is on a distinguished road
Default

Quote:
Originally Posted by etrusco69 View Post
Hi everyone,
I install sdk4.3 on my machine and now when I'm trying to send the application to apple i get an error.
This version of sdk doesnt allow you to send it.
Do you think, I can unistall Xcode completely with any sdk and reinstall it?
Otherwise there's any other way to send the app?
Thanks Giuliano
4.3 cannot be used to submit apps as stated by Apple. You can download Xcode 4 GM with the 4.2 SDK and use that to submit.
__________________
Wolfador Coding
Check out my apps:
Crazy Dog Daily Log || Crazy Spouse Daily Log || iCourtReport
87vert is offline   Reply With Quote
Old 02-23-2011, 11:36 PM   #11 (permalink)
Registered Member
 
Join Date: Dec 2008
Location: Los Angeles
Posts: 5
BriteMac is on a distinguished road
Default Stuck..

I am using Xcode 4 and something has happened where now I crash Xcode 4 when it tries to codesign with my Team Provisioning profile and my developer certificate.

I can't seem to find a way around it.

Here is the crash:
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[NSCFArray setObject:forKey:]: unrecognized selector sent to instance 0x202a52b20
UserInfo: (null)
Hints: None

When I look in organizer it seems happy with the certificates and profiles. I even recreated the team provisioning profile.

I'd appreciate any help/feedback. I am ready for GM candidate #2 of Xcode-- it is a bit buggy..
BriteMac is offline   Reply With Quote
Old 02-24-2011, 02:01 AM   #12 (permalink)
Dr. Gerbil
 
1337Skittles's Avatar
 
Join Date: Aug 2010
Location: Kentucky
Posts: 129
1337Skittles is on a distinguished road
Default

Quote:
Originally Posted by BriteMac View Post
I am using Xcode 4 and something has happened where now I crash Xcode 4 when it tries to codesign with my Team Provisioning profile and my developer certificate.

I can't seem to find a way around it.

Here is the crash:
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[NSCFArray setObject:forKey:]: unrecognized selector sent to instance 0x202a52b20
UserInfo: (null)
Hints: None

When I look in organizer it seems happy with the certificates and profiles. I even recreated the team provisioning profile.

I'd appreciate any help/feedback. I am ready for GM candidate #2 of Xcode-- it is a bit buggy..
that looks like to me a problem with your coding of your program, not a code signing problem
1337Skittles is offline   Reply With Quote
Old 02-26-2011, 08:10 PM   #13 (permalink)
Registered Member
 
Join Date: Dec 2008
Location: Los Angeles
Posts: 5
BriteMac is on a distinguished road
Default Found the trouble..

Quote:
Originally Posted by 1337Skittles View Post
that looks like to me a problem with your coding of your program, not a code signing problem
Actually not

What it turned out to be was that I had an expired iPhone Developer certificate and a new one. The one that was expired was not shown because Keychain Access by default doesn't show expired certificates (dumb!)

Anyway--Xocde seemed to crash when the codesign utility returned 1 with an error. If I attempted to not sign the code Xcode no longer crashed. Signing crashed it when it failed.

Anyway--once I got rid of the bad certificate I was able to happily move forward.

Xcode 4 is still buggy--I hope they release an update before they really do release. I also have issues with it and subversion--it will not check in localized.strings file at all. Further if I do an update from subversion and it includes an updated project file (from another dev system) Xcode 4 likes to crash again.

Thanks for your reply.
BriteMac is offline   Reply With Quote
Reply

Bookmarks

Tags
code signing, distribution

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: 414
11 members and 403 guests
AppleDev, chemistry, Emy, Gi-lo, ipodphone, mistergreen2011, pipposanta, QuantumDoja, Retouchable, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,924
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

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