unable to get build for iPhone from Xcode

hi fellows,
I tried Unity tutorial about getting the build for iPhone from Xcode of Unity3d made app or game.
I also signed in my Apple Developer Account but still getting below mentioned errors;
"
Error 1: Signing for “Unity-iPhone” requires a development team. Select a development team in the project editor.
Error 2: Code signing is required for product type ‘Application’ in SDK ‘iOS 10.2’. "

What should I do now for this work?

Guide me fellows.

Figured it out. At least this worked for me…

  1. Click on “Show Project Navigator Icon”
  2. Select “Unity Phone”
  3. Click this blue box to expand an area.
  4. Select “Unity Phone” (The other two didn’t work for me)
  5. Select “General”
  6. Select the “Team” drop-down menu and select " (Personal Team)"
  7. I also selected this team in another option from step 3/4. You may need to do that. I’m not sure.

,@cellfruitsenterprise ,

Not sure how long these instructions will be good for. Posting this Feb 15, 2018.
This is my first go, and I had the error:
Signing for “Unity-iPhone” requires a development team. Select a development team in the project editor.

I didn’t set my Team to " (Personal)"
Side note the Unity instructions were kinda vague, but they don’t own XCode… I’m not complaining here.

  • In XCode, select the Project Navigator icon in the upper left portion of the window.

  • Select “Unity-iPhone” just below the Project Navigator.

  • Then in the middle column (it’s white) there is a blue box right below the top layer of icons.

  • Click that to expand the view.

  • Click
    the “General” option in the top of
    the middle pane.

  • Second stanza, “Signing”, there is a drop-down
    labeled, “Team”. Click that, and
    select " (Personal)"

The trick isn’t to edit the project’s Build Settings even though the error message implies that you should. Instead, edit the TARGET’s settings, as follows.

First select the Unity-iPhone target. On the General page you should see settings for things like Display Name, Device Orientation, and so on, Unity sets many of these for you. But you have to set the Signing Team yourself.

(This was tested using an iOS project freshly created by Unity 2017.3 and Xcode 9.2.)

DId you ever figure this out? Because I’m having the same issue…

not yet, issue still stands

I had the same problem too. It’s because you didn’t add an Apple ID to XCode. Or at least in my case. You go to XCode → Preferences → Accounts and add it there. And after that in your project inspector in Build Settings, at Developing Team, you add the respective team that appears when you click on the added account info. If it’s a personal ID it will say so. This link contains all the information you need: Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn. Pay attention to follow all the steps. Hope it helps!

First, you need to get apple redeveloper ID (Note: It’s is not free)
Then go to Apple developer website → account → identifiers
Link(Sign In - Apple)
By default the name is XC WildCard Click on it in there you can see App ID Prefix (Team ID) copy the ID number.
Now go back to Unity → Project Settings → Player → Select IOS → Other Setting → Under the section called “Identification” you can see there is a section for Signing Team ID, past you Team ID in here. Close Project Setting.
Rebuild your project for iPhone.
Export it to your device using Xcode.

for those running into this in 2021-2022…

apparently some xcode component update caused this. In the past I have always used automatic signing and I just had to select the team the first time I opened the new unity built xcode project. Apparently in the past when I did this xcode then filled in the team in all necessary build settings. Now I figured out that xcode just fills in the team for release. The fix is in build settings to select the team in the top level Development Team pull down and every underlying setting gets updated