tags:

views:

768

answers:

3

I've been working on an iPhone project with iOS 4.0. I just downloaded Xcode 3.2.4 with iOS SDK 4.1 so that I can work with the updated iOS. Upon opening the project in the udpated Xcode, I found that the target read 'Base SDK Missing'. I fixed that by following the instructions here.

Now when I try building targeting any version of iOS, I receive this error (with the corresponding version referenced in the error text):

CodeSign Error: code signing is required for product type 'Application' in SDK 'Device - iOS 4.1'

I have the Team Provisioning Profile created by Xcode installed, that Provisioning Profile has my certificate, and the Code Signing Entity selected is 'iPhone Developer: Aaron Milam'.

Any ideas as to what I could be missing here?

+1  A: 

It happens when xCode doesn't recognize your certificate.

It's just a pain in the ass to solve it, there is a lot of possibilities to help you.

But the first thing you should try is removing in "Window" tab => Organizer, the provisioning that are in your device. Then re-add them (download them again on the apple website). And try to compile again.

By the way, did you check in the Project Info Window the "code signing identity" ?

Good Luck.

Vinzius
I'll give it a try. Thanks!
Aaron
If it doesn't work, then : 1°) Reboot your computer. 2°) Remove all your computer certificates (related to iPhone, not all all ^^). 3°) Re-Download them. Without having your computer near me it's a bit difficult to solve this :/ Good Luck !
Vinzius
So I followed your instructions. I found that in Xcode, <Multiple Entities> was selected for code signing. I reselected my own, and that ended up working! Thanks for your help!
Aaron
For me I had the correct settings in the project, but forgot to check the target. Setting the code signing identity setting in the target build properties did the trick
Ken Pespisa
+2  A: 

Make sure that you have created provisioning profiles correctly.. if you did.. you must be having ... public key, private key and Certificate in Keychain Access. CHECK if you have all these..

XCode 3.2.4 Comes with the Auto device provisioning ... so you just have to sign in to your developers account it will download all valid profiles..

If you have all you need in keychain and downloaded profiles... When you are selecting iPhone Developer: Aaron Milam'. in build settings.. make sure you have selected Configuration ( on left top inside Target->Build ) you want to make build for. or you can do All configuration to make changes in all available configurations i.e. Debug, Release etc.

KiranThorat
A: 

Have you updated the firmware version of the iPhone you are testing on?

gnuchu
Yes. In fact, it just arrived in the mail with the latest version. I did check for updates to be sure.
Aaron