Adding Your Account to Xcode

When you add your Apple ID to the Xcode Accounts preferences, Xcode displays all the teams and developer programs you belong to. Xcode also shows your role on the team and details about your signing identities and provisioning profiles that you’ll create later in this document.

About Accounts and Teams

Apple Developer Programs provide everything you need to distribute your iOS or Mac app. You join the iOS Developer Program to submit your iOS app to the App Store. You join the Mac Developer Program to either submit your app to the Mac App Store or distribute it outside the Mac App Store. After you join a developer program, you can use platform-specific app services that are available only to apps submitted to the store. You also have access to more tools—Member Center and iTunes Connect—where you manage metadata about your organization and your app.

You use your Apple ID, which uniquely identifies you, to enroll in a developer program. You create and enroll a team for which you’re the principal developer. You can enroll as an individual or a company where an individual is considered a one-person team. The person who creates the team becomes the team agent, the legal contact and administrator of the team who has all privileges and full access to Member Center and iTunes Connect.

Using Member Center, a team agent for a company can add people to the team and assign roles that define their individual privileges. A team admin can perform nearly all the same tasks as a team agent—for example, a team admin can manage the team but not sign legal agreements. A team member can only run apps on devices and use certain app services if approved by a team agent or admin.

Add Your Apple ID To Xcode

After you join a developer program, add your Apple ID to Accounts preferences in Xcode.

To add an Apple ID to Xcode

  1. Choose Xcode > Preferences.

  2. At the top of the window, click Accounts.

  3. In the lower-left corner, click the Add button (+) .

  4. Choose Add Apple ID from the pop-up menu.

    ../Art/2_addingaccount_2x.png
  5. In the dialog that appears, enter your Apple ID and password, and click Add.

Verify Your Account

Xcode uses your Apple ID credentials to sign in to Member Center and iTunes Connect on your behalf. Occasionally, you’ll need to sign in to Member Center and iTunes Connect to perform tasks yourself. Before continuing, verify that Xcode and you have access to these tools.

Verify Your Xcode Account Credentials

In Xcode, verify that your Apple ID appears in Accounts preferences and viewing the details of your account shows your signing identities and provisioning profiles.

To view account details in Xcode

  1. If necessary, choose Xcode > Preferences, and at the top of the window, click Accounts.

    The teams that you belong to appear in a table to the right of your selected Apple ID. The team name appears in the Name column, and your role appears under the iOS or Mac column depending on which developer program the team belongs to. If your role is Agent or Admin, you can perform all the steps in this document. If your role is Member, a team agent or admin will perform some of the steps on your behalf.

    ../Art/2_accountsjoinbutton_2x.png../Art/2_accountsjoinbutton_2x.png

    A Join button appears under the iOS or Mac column if you don’t belong to that developer program. For iOS apps, you must belong to the iOS Developer Program, and for Mac apps, you must belong to the Mac Developer Program. To add a developer program to your team, click the Join button. Your default browser will display the developer program enrollment webpage. Click “Enroll now” and follow the instructions.

  2. Select the team you want to view in the table, and click View Details.

    In the dialog that appears, view your signing identities and provisioning profiles. Xcode shows the signing identities that are in your keychain. If this is the first time you’re code signing an app, no signing identities or provisioning profiles appear in these tables.

    ../Art/2_viewdetailsdialog_2x.png../Art/2_viewdetailsdialog_2x.png
  3. Click Done to close the dialog.

Verify Your Member Center Credentials

Verify that you have access to Member Center and that the assets in the Certificates, Identifiers, and Profiles area match the assets in Xcode.

To view your code signing and provisioning assets in Member Center

  1. In your browser, go to developer.apple.com.

  2. In the upper-right corner, click Member Center.

  3. In the dialog that appears, enter your Apple ID and password, and click Sign In.

  4. In the “Technical Resources and Tools” section under Developer Program Resources, click the icon or text below Certificates, Identifiers & Profiles.

    ../Art/2_membercenter_2x.png
  5. Under iOS Apps or Mac Apps, click either Certificates, Identifiers, Devices, or Provisioning Profiles to view the assets for that developer program.

    ../Art/2_certs_ids_profiles_tunnel_2x.png

    The certificates and provisioning profiles you view in Member Center should match the signing identities and provisioning profiles that appear in Xcode. If your membership is new, a Getting Started webpage is displayed instead.

    ../Art/2_developerportal_2x.png

Alternatively, go to developer.apple.com/account from your browser to go directly to the Certificates, Identifiers & Profiles webpage. You’ll use Member Center in other verification steps, so don’t sign out yet.

Verify Your iTunes Connect Credentials

Once you join a developer program, you have access to iTunes Connect where you enter metadata about your organization and your app, including information about some app services—In-App Purchase and Game Center—that you may enable later. If you’re the team agent—the person who joined the developer program—you have access to iTunes Connect automatically. If you’re a team admin or team member for a company, you won’t have access to iTunes Connect until the team agent creates an iTunes Connect account for you.

Although iTunes Connect is not used in this document, verify your iTunes Connect credentials now.

To go to iTunes Connect from Member Center

  1. If necessary, sign in to Member Center.

  2. In the Developer Program Resources section under App Store Distribution, click the icon or text below iTunes Connect.

  3. Enter your Apple ID and password, and click Sign In.

    ../Art/2_itunesconnectlogin_2x.png

    Later, you’ll enter information about your app using iTunes Connect.

  4. In the upper-right corner, choose Sign Out from the pop-up menu.

Alternatively, enter itunesconnect.apple.com in your browser to sign in to iTunes Connect.

Recap

In this chapter, you learned how to add your Apple ID to Xcode and add a developer program, if necessary. You also learned how to sign into Member Center and iTunes Connect. In the next chapter, you’ll learn how to create your signing identity and team provisioning profile.