Xcode error: Code signing is required for product type 'Application' in SDK 'iOS 10.0'
Solution 1
With Xcode-8.1 & iOS-10.1
- Add your Apple ID in Xcode
Preferences
>Accounts
>Add Apple ID
:
- Enable signing to Automatically && Select Team that you have created before:
- Change the Bundle Identifier:
- Code Signing to iOS Developer:
- Provision profile to Automatic:
You can now run your project on a device!
Solution 2
To add developer account to Xcode:
Press Cmd ⌘ + , (comma)
Go to
Accounts
tabFollow the screen shot below to enable development team:
Solution 3
In case you are still having this problem, click on the Tests and select a team for them too.
Solution 4
To run your app on a real device, you need to have an Apple ID, and have registered your device with that ID. That is why you are getting this error.
Here's how you do it.
Go to the project Navigator. Cmd-1 if you can't find it.
Sign in with your Apple ID that is linked to your developer account, or just your Apple if you don't have a dev account.
If you haven't registered your device with that account yet, a button will appear, something like 'Register device'. Click that and Apple will register the device and do the certificates and code signing. (Oh my unicorns certificates and signing is so much easier than it used to be)
Pick your physical device and hit run and it should load onto your device without error.
Solution 5
Well, after I did all those things I still got the errors so I closed Xcode and opened it up again and then it worked.
Related videos on Youtube
Hardik Parmar
Updated on December 09, 2021Comments
-
Hardik Parmar over 2 years
I have Xcode 8 installed on OS X El Capitan.
I get this error:
Signing for "target" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.0'
-
bluevoid over 7 yearsYou need to go to the General tab and select a Team.
-
benc over 5 yearsThis should (surprise) happen to people the have been using "Run" (simulator) successfully, but not when they want to "Archive". Can you confirm the command that triggered this error?
-
-
Ketan Parmar over 7 yearsyou not need developer account for testing. apple id is enough with latest
xcode
. You can test your app in devices by your apple id only! -
user3625547 over 7 yearsI did tried many times by adding and deleting the accounts in xcode but still not able to get through the above error. Automatic signing is enabled and some other team is selected instead of actual APP ID.
-
Michał Pietraszko over 7 yearsFor those who can't find
general
tab. stackoverflow.com/questions/19407439/general-tab-missing -
user239558 over 7 yearsWhat does "You can set it from
general
" mean. Who's the general, where does he live, and what army? Need more context please. -
angry kiwi about 7 yearsWhere is the enable automatic sigin? That I don't see in xcode 8
-
Shrawan about 7 yearsSelect Target and then select General. You can see Automatic signin :)
-
Ethan Parker over 6 yearsGreat job answering this question, and I love the screenshots. Thanks! Cool that you don't have to pay $99 to run any more.
-
Ian Steffy over 6 yearsIt is not explained where many of these options are beyond the first step which is why this answer is not useful for me. Also where is Target? Can you please give step-by-steps?
-
oOEric about 6 yearsand sub-project also!
-
Daniel Dudas over 5 yearsImage is not available anymore. Please upadte
-
Anton Andreev over 5 yearsConfiguring Xcode to just run your project s***s on so many levels. There is absolutely no need to be that complicated.
-
Michal Shatz over 5 yearsThis is actually the solution that resolved it for me
-
Leslie over 5 yearsTo get to this general settings, select the dropdown at the top and change it to your device
-
benc over 5 yearsGlad that worked for you. As a relatively new Xcode user, I do feel compelled to mention that this is the type of change best done in Xcode GUI, when possible, AFAIK.
-
Andru about 5 yearsHaha, don't know why, but that solved it for me, too!
-
Faisal Julaidan about 5 yearssame here. So follow the steps up then close Xcode and reopen it again
-
Kim about 5 yearswhere can I click on "Tests" ?
-
Jaaayz about 5 yearsSame here. Follow the steps on the approved answer then if it doesn't work close xCode then open the workspace again then the job is done. LOL
-
Ilmari about 5 yearsI already had the team selected long ago, but now that I started making the tests, they have this problem. Neither clicking on the top-level test "folders" or the test code files themselves brings up anyplace where I could select the development team for them. This is Xcode 10.2.
-
Meir Snyder about 5 yearsFor those confused how to get to the signing page, you double click the top file in your file explorer, that opens the project settings where you can select the bundle name and signing
-
Acauã Pitta almost 5 yearsyou guys need to know that have people who come here without ANY base, help them (me including) with a step by step please
-
Yunus Nedim Mehel almost 5 yearsA disappointingly robust solution to all Xcode code signing problems for the past few years :/
-
sbdchd over 4 yearsOn Xcode 11.3, under the project file there are tabs for General, Signing, etc. To the left of those nav buttons there should be your project's name in a dropdown. That is the target, click the dropdown to select a different target, e.g., the tests and from there you can select the signing.
-
Pushparaj Samant almost 4 yearsWas going to add this answer but saw yours first. Felt dumb after wasting 10 minutes.
-
bobobobo over 3 yearsCheers for using technology from 1987 to present your answer
-
Daljeet Dhaliwal over 3 yearsNote: in more recent versions of XCode, that option for automatically manage signing would be in the "Signing & Capabilities" tab. –
-
Valentyn Hruzytskyi over 3 yearsWhere is Target?
-
Ricky Levi almost 3 years@jonesy827 there is, search here for subject
With Xcode-8.1 & iOS-10.1
-
jonesy827 almost 3 yearsYep, someone must have updated it. Definitely was not when I made the comment :) Thanks for the headsup
-
Montresor over 2 yearsHow does this add information or clarity to what has already been shared?
-
Montresor over 2 yearsYour answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.