How to Setup Apple Account with iOS App and Xcode
To distribute your app or run it on a physical device, you need to link your Apple ID to Xcode.
Step 1: Add Apple ID to Xcode
- Open Xcode > Settings... (or Preferences).
- Click the Accounts tab.
- Click the + button and select Apple ID.
- Sign in with your Apple developer credentials.
Step 2: Configure Team Settings
- Select your project in the Navigator.
- Select your main App Target.
- Go to Signing & Capabilities.
- In the Team dropdown, select the account you just added.
Step 3: Automated Signing (Recommended)
- Ensure "Automatically manage signing" is checked.
- Xcode will automatically create provisioning profiles and certificates for you.
Step 4: Register Devices
If you connect a new iPhone, Xcode will ask if you want to register it.
- Click Register Device.
- This allows you to install and debug your app on that specific hardware.
