Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 21    Views: 2021

Altec2u
Apple Fan
Profile
Posts: 8
Reg: Oct 28, 2010
Lake Havasu Cit...
80
10/28/10 10:00 PM (15 years ago)

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

I get this error message after running in x-code for device instead of simulator, I would like to try on my iphone. Thx. Check dependencies [BEROR]CodeSign error: code signing is required for product type 'Application' in SDK 'Device - iOS 4.1'
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6868
Reg: Jan 01, 2010
Monterey, CA
78,860
like
10/28/10 10:48 PM (15 years ago)
Hi.... It sounds like you have not set the Code Signing Property in the Build Settings of your project. But, before we get to carried away - let be sure you are all setup. If you are ready to install your app on a device, you will need: a) An Apple iOS Developer account. Register at Apple if you have not done this yet, they do charge an annual fee. b) After registering, you will need to create a Provisioning Profile and a Code Signing Certificate. There are details on the iOS developer site on how to do this c) After getting a Provisioning Profile and Developer Certificate installed in Xcode (read the instructions in the developer portal), you will need to change the Code Signing Identity to your newly installed Apple Credentials. Again, read the docs on the iOS dev. portal for more details. If you have never done this before, it can get confusing. However, it's not difficult if you take your time and follow the directions from Apple exactly. Good Luck.
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
10/29/10 01:34 AM (15 years ago)
hi, i'm having the same problem. i did the launch assist, read the whole thing and watched the videos. can you give an example of (C)? on the change of code signing if possible? thanks
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
10/29/10 01:45 AM (15 years ago)
i also get this error: A Valid Signing indentity matching this profile could not be found in your keychain
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6868
Reg: Jan 01, 2010
Monterey, CA
78,860
like
10/29/10 01:52 AM (15 years ago)
Step by step: Assuming you already downloaded the Provisioning Profile and Developer Cert. from Apple.... AFTER attaching your phone to your mac with the cable.... 1) Single click your projects name, the top-most item in the Groups / Files list. 2) With project name selected, use Menu > Edit Project Settings. A largish window will open with tons and tons of options. 3) The top-left corner of the Project Settings window shows a Configuration Drop-Down list. Open this and explore it. It should have at least two options - Debug and Release are the important ones. 4) Select Debug to build and run on your phone, Release to Build (not build and run) for the App Store 5) With Debug select, and Device selected (same list), click the Build tab in the Project Settings window 6) Scroll down to the Code Signing section. This is the section where you tell Xcode how to 'sign your code' Code must be signed before it will run on a device 7) In the Code Signing Identity option, open the options and you should see your iPhone Developer profile in the list. Select it. THIS IS THE IMPORTANT PART and NOT INTUITIVE Close the Project Properties window, then expand the Targets choice (left side, near bottom, under all the project folders). Inside the Targets, highlight your project name again. Next, from the main-menu, choose Project > Edit Project Settings - the same Project Settings screen will open but this time it's for the target, not the Project. Build Tab > Code signing selection again. Set the developer profile choice the same way you did for the project. Summary: Select Project and set the Build Settings, Code Signing choice, close Project Settings window. Highlight your Target, do the same thing, set the code-signing. Now, it should 'build and run' on the device. When you click build and run with the device connected it should install on the phone and ask you if you want to install the provisioning profile on your device - say yes. It should now be running on your device. The only difference when building for the App Store is you use Build and not Build and Run and instead of Debug you choose Release (in the drop down) Seems messy, it's not, takes like :30 seconds after you do it once or twice. You could also try YouTube for a video example. I'll make one eventually - no time! Cheers.
 
Altec2u
Apple Fan
Profile
Posts: 8
Reg: Oct 28, 2010
Lake Havasu Cit...
80
like
10/29/10 10:19 AM (15 years ago)
Thanks for all your Help That did the trick.
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
10/29/10 11:36 AM (15 years ago)
thanks but i still think i'm doing something wrong. on the code signing it says: profile doesn't match application identifier Thanks for the detailed step by step follow up.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6868
Reg: Jan 01, 2010
Monterey, CA
78,860
like
10/29/10 11:55 AM (15 years ago)
OK, so App Identifiers are setup in Apple Dev. Portal. You must have already created an App Id or you would not have been able to download the signing authority / provisioning stuff from Apple. All this means is that you'll need to set the Application Bundle Identifier in your Xcode project to reflect the Apple Id in your Apple account. The App Identifier is set in Xcode in the Entitlements.plist. This is in your Config folder in your Xcode project. Visit the discussion at the URL if you can't get it to work. You're SO CLOSE - good work. http://stackoverflow.com/questions/853253/profile-doesnt-match-application-identifier
 
Annonymous
Profile
10/29/10 03:03 PM (15 years ago)
thanks but i still think i'm doing something wrong. on the code signing it says: profile doesn't match application identifier Thanks for the detailed step by step follow up.
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
10/29/10 03:09 PM (15 years ago)
wow... finally got it. I just had to login with my username and password on the organizer and it worked. wow that was a bit tricky.... Ok Everythign is working on my ipod.. now i just have to release on the itunes... now that's another trial and error. i'm trying to release and it's now giving another error. It Says: codesign error code signing is required for product type application in sdk device i will try to send to itunes and if i'm able i'll keep you guys updated. Thanks for the help
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
10/29/10 04:38 PM (15 years ago)
Update hope that this will help someone struggling like me. After you have tested on you iphone or ipod... Follow the below instructions: This steps helped me build my app without any mistakes the link is below: http://blancer.com/tutorials/i-phone/90196/submitting-iphone-apps-to-the-apple-app-store-%E2%80%93-a-step-by-step-guide/ ---------------------------------------------------------------------------------------------------------------- Now everything is step up, open your project in Xcode [1] Click ?i? Info button after selecting your project from ?Group & File? in left side bar. [2] Navigate to ?Configuration? tab and select ?Release?. Click the ?Duplicate? button from bottom, name is ?iphoneDistribution?. [3] Click on ?Build? tab and choose ?iphoneDistribution? and enter in ?Search in Build Settings? filed ?Base SDK? and select the current selected Device and change to what gadget your application is targeting (I prefer ?Device-iPhone OS 2.0) [4] Now in ?Search in build setting? field enter ?code signing identity? and choose the provisioning profile created earlier in Step 3. Apply the same to the child property ?Any iPhone OS Device?. [5] Once this done close the Info screen and select the ?Target?> ?Your App? from ?Group & File? in left side bar and click on ?Info? button again from Xcode. [6] To be on the safer side repeat step 3 and 4. [7] With the Info screen still open click on ?Properties? tab and enter ?App Id?(i.e. com.edumobile.iphoneapp) in Identifier field. [8] Now that all is done, click on ?Build? (cmd+B) from Xcode>Build. [9] You will find your binary file created on right clicking on ?Product?> ?YourApp? and selecting ?Reveal in Finder?. Zip this file. --------------------------------------------------------------------------------------------------------------------------------------------- ok next step is submitting to https://itunesconnect.apple.com/ This is what i'm trying to learn now. I'm getting confused where do i find the my bundle id on my project. It seems that when you apply on itunnesconnect. The one that you submit should be exactly the same as the one that you use on your app project. IF anyone knows where to find on the source code let me know. If i find it i'll post it here so it can help someone that is having the same problem. Again Thanks for all the help.
 
Annonymous
Profile
10/29/10 06:32 PM (15 years ago)
wow... finally got it. I just had to login with my username and password on the organizer and it worked. wow that was a bit tricky.... Ok Everythign is working on my ipod.. now i just have to release on the itunes... now that's another trial and error. i'm trying to release and it's now giving another error. It Says: codesign error code signing is required for product type application in sdk device i will try to send to itunes and if i'm able i'll keep you guys updated. Thanks for the help
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6868
Reg: Jan 01, 2010
Monterey, CA
78,860
like
10/29/10 10:35 PM (15 years ago)
The Bundle Identifier also needs to be set in the .plist file, inside the config folder (in your Xcode project).
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
10/29/10 11:44 PM (15 years ago)
hi what do you mean by being set? Thanks
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
10/29/10 11:46 PM (15 years ago)
i think i understood. the bundle identifier is correct on the .plist thanks
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6868
Reg: Jan 01, 2010
Monterey, CA
78,860
like
10/30/10 12:03 AM (15 years ago)
Can you get a Release build done? The Application Loader is expecting the build with a Configuration set as Release. Device | Release, then Build (not build and run)
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
10/30/10 12:48 AM (15 years ago)
yes i can. i did as build but now is also given a warning. Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
10/30/10 12:50 AM (15 years ago)
i forgot. the build shows successful i can zipped and add to application loader. but now both application loader and the xcode is giving me warning
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
10/30/10 12:53 AM (15 years ago)
holly... whooohooo..... i cant believe i just finish sending to the app store my first app.. ok here is the update if someone is having the same problem. When you are in the ios provision portal: Make sure that you create 1)Cerificate Development 2)Certificate Distribution 3) App Id 4)Provision Development 5)Provision Distribution 6)Download them all Except *App Id* 7)drag and drop all the provision files on the *x code* (ex:.mobileprovision) 8) make sure when you drag and drop on the xcode, all your provision profile is valid. if its not try clicking 8)a)the check box (automatic device provisioning) 8)b)click on *refresh* Button on the top. it will open a window for you to put your username and password. 9)After Downloading the certificates click twice all of them. 10)on the xcode under *group & files* click the first file click *info* on the top click *build* on the top on *configuration:* choose *Active (Release)* Under *setting* go to *Code Signing Identity* Right underneath *Code Signing identity* in bold letter: Choose *Any IOS Device* Right Beside *Any IOS Device* choose *iphone Distribution: Your Name* (if you dont see your name you have to do the key access again) 11)BAck to *xcode* under *Group & Files* go to *target* Below target there should be a file . Click on that, and then click Info (in blue on the top) Then Repeat *step 10* just to make sure that everything is right. 12) now click *build* tab click *clean all targets* Click *Build* tab again and click *build* That's it. Now it should be compiling and it should show *build Succeeded* with no *warnings* or *failed* if it shows any of the two probably you wont be abble to submit to the apple store. ok now that's compiled. Just send to the apple store via *application loader* (which you should have downloaded at apple website) Hope that this helps someone and saves the frustration that i have gone through.. So good luck to everyone!!!
 
teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
like
07/10/11 02:29 PM (15 years ago)
Can anyone help with getting rid of the location data in 1.4? Apple said they would approve my app if I can get to where it doesnt ask to use the location when someone uploads it... So Close!!!!!
 
oldcoder
Apple Fan
Profile
Posts: 12
Reg: Jul 25, 2011
tri cities
120
like
11/24/11 12:38 PM (14 years ago)
It may take 30 seconds for some. I am on 4 months and still trying.
 
Wags_
Code is Art
Profile
Posts: 1
Reg: Dec 02, 2011
Fort Wayne
10
like
12/02/11 07:28 AM (14 years ago)
oldcoder -- This may be an easy fix for you -- Here's my story - Have iPad, signed up for dev account, through organizer window in Xcode, allowed iPad for development use - it did this all automatically, got id's , certs, etc. I also did the manual method for getting a cert and aphid like is shown in apple dev center - and still i get the error SO HERE IS WHAT I DID SO SIMPLE --- instead of just clicking run see when you hold down click on run there are other options YOU WANT TO SELECT THE PROFILE OPTION ---- this will build the app and put it on your iPad in a few minutes so simple.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.