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'
https://i.stack.imgur.com/CSXrc.png
To add developer account to Xcode:
Press Cmd ⌘ + , (comma) Go to Accounts tab Follow the screen shot below to enable development team:
https://i.stack.imgur.com/uS3JP.gif
With Xcode-8.1 & iOS-10.1
Add your Apple ID in Xcode Preferences > Accounts > Add Apple ID:
https://i.stack.imgur.com/Kg7ng.png
Enable signing to Automatically && Select Team that you have created before:
https://i.stack.imgur.com/TsUst.png
Change the Bundle Identifier:
https://i.stack.imgur.com/mFanQ.png
Code Signing to iOS Developer:
https://i.stack.imgur.com/RLAC0.png
Provision profile to Automatic:
https://i.stack.imgur.com/F8NaR.png
You can now run your project on a device!
In case you are still having this problem, click on the Tests and select a team for them too.
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. Click the project target dropdown and pick Target. Click on the Team dropdown and pick add an account. 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.
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.
Xcode 11.4
Click on:
Your project Signing & Capabilities Select your Team.
https://i.stack.imgur.com/DCByW.jpg
Make sure you add the team on both Debug and Release tabs.
https://i.stack.imgur.com/Vj09c.png
Recently had the issue on Xcode 11 beta 2:
Select your project on the left side panel Find the "Signing & Capabilities" tab for your target
If your target doesn't have the "Signing & Capabilities" tab (in my case only the test target had it), open the build settings for your project and click "All" instead of "Basic"/"Customised". Find signing under the settings and make sure you've got a Development team set up.
Repeat the same step for your test target if needed
For those that are going to come here after me, if it's Xcode 11 and iOS 13 then your layout might look a little different than what you see in the main answer to this question.
Firstly, do this as it was mentioned in the answer: Add your Apple ID in Xcode Preferences > Accounts > Add Apple ID.
https://i.stack.imgur.com/WUIKW.png
If you need to disable the team for now, as you don't have a development account, just change the target at the top menu to iPhone instead of a generic iOS device or real device.
For those using Ionic
and receiving this error - you need to open your $project_dir/platform/ios/$project_name.xcodeproj
- then follow the steps listed in the "answer"
With Xcode-8.1 & iOS-10.1
Select team in the general settings of the target
Select the development team in both project and target. For the rest, set to "automatic" and then it will work.
I had this error on my React Native project, weirdly enough I thought I was NOT editing the correct .xcodeproj file! I went into my project directory './appname/ios' and opened the project file and edited my team name into the project and it started working.
Go to the bar where you have file, edit, view etc Go on view -> Navigators -> Show Project Navigator -> Click on team -> Select yours.
Enjoy 😁
Downgrading the iOS development Target from 12.1
to 12
fix the issue for me as I don't have a dev team configured.
in Xcode13: select your project -> in Navigatr bar you will see TARGETS -> Click on the project name below the TARGETS -> you will see the Signing& Capabilities
Success story sharing
xcode
. You can test your app in devices by your apple id only!general
tab. stackoverflow.com/questions/19407439/general-tab-missinggeneral
" mean. Who's the general, where does he live, and what army? Need more context please.