Xcode error: Code signing is required for product type 'Application' in SDK 'iOS 10.0'

IosXcodeXcode8Ios10Code Signing

Ios Problem Overview


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'

Xcode screenshot

Ios Solutions


Solution 1 - Ios

To add developer account to Xcode:

  1. Press Cmd ⌘ + , (comma)

  2. Go to Accounts tab

  3. Follow the screen shot below to enable development team:

Step 3

Solution 2 - Ios

With Xcode-8.1 & iOS-10.1

  1. Add your Apple ID in Xcode Preferences > Accounts > Add Apple ID:

Step 1

  1. Enable signing to Automatically && Select Team that you have created before:

Step 2

  1. Change the Bundle Identifier:

Step 3

  1. Code Signing to iOS Developer:

Step 4

  1. Provision profile to Automatic:

Step 5

You can now run your project on a device!

Solution 3 - Ios

In case you are still having this problem, click on the Tests and select a team for them too.

Solution 4 - Ios

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.

  1. Go to the project Navigator. Cmd-1 if you can't find it.

  2. Click the project target dropdown and pick Target. enter image description here

  3. Click on the Team dropdown and pick add an account. enter image description here

  4. 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.

  5. 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) enter image description here

Pick your physical device and hit run and it should load onto your device without error.

Solution 5 - Ios

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.

Solution 6 - Ios

Xcode 11.4

Click on:

  1. Your project
  2. Signing & Capabilities
  3. Select your Team.

enter image description here

Solution 7 - Ios

Make sure you add the team on both Debug and Release tabs.

enter image description here

Solution 8 - Ios

Recently had the issue on Xcode 11 beta 2:

  1. Select your project on the left side panel
  2. 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.

  1. Repeat the same step for your test target if needed

Solution 9 - Ios

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.

Then click on the project name which is located in the left panel. Then you'll get a window of settings. Then look for "Signing & Capabilities" and that's where you'll be able to see "Team" and select your name as the option. enter image description here

Solution 10 - Ios

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.

Solution 11 - Ios

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"

Solution 12 - Ios

Select team in the general settings of the target

Solution 13 - Ios

Select the development team in both project and target. For the rest, set to "automatic" and then it will work.

Solution 14 - Ios

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.

Solution 15 - Ios

Go to the bar where you have file, edit, view etc Go on view -> Navigators -> Show Project Navigator -> Click on team -> Select yours.

Enjoy 

Solution 16 - Ios

Downgrading the iOS development Target from 12.1 to 12 fix the issue for me as I don't have a dev team configured.

Solution 17 - Ios

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionHardik ParmarView Question on Stackoverflow
Solution 1 - IosKetan ParmarView Answer on Stackoverflow
Solution 2 - IosShrawanView Answer on Stackoverflow
Solution 3 - IosAlexander VitanovView Answer on Stackoverflow
Solution 4 - IosJoshua DanceView Answer on Stackoverflow
Solution 5 - IosCyrus ZeiView Answer on Stackoverflow
Solution 6 - IospuerileView Answer on Stackoverflow
Solution 7 - IosGalAbraView Answer on Stackoverflow
Solution 8 - IosYunus Nedim MehelView Answer on Stackoverflow
Solution 9 - IosZaMyView Answer on Stackoverflow
Solution 10 - IosHany SakrView Answer on Stackoverflow
Solution 11 - IosRicky LeviView Answer on Stackoverflow
Solution 12 - IosMichal ShatzView Answer on Stackoverflow
Solution 13 - IosMidhun NarayanView Answer on Stackoverflow
Solution 14 - IosSam GrootView Answer on Stackoverflow
Solution 15 - IosPierreJacobs96View Answer on Stackoverflow
Solution 16 - IosMohamed ALOUANEView Answer on Stackoverflow
Solution 17 - IosNanaView Answer on Stackoverflow