To run in a real iOS device, you'll need the following:
- The
TEAM_IDassociated with your Apple ID - The iOS device registered in Xcode
Install KDoctor with Homebrew:
```text
brew install kdoctor
```
Run kdoctor --team-ids to find your Team ID.
KDoctor will list all Team IDs currently configured on your system, for example:
3ABC246XYZ (Max Sample)
ZABCW6SXYZ (SampleTech Inc.)
Alternative way to find your Team ID
If KDoctor doesn't work for you, try this alternative method:
- In Android Studio, run the
iosAppconfiguration with the selected real device. The build should fail. - Go to Xcode and select Open a project or file.
- Navigate to the
iosApp/iosApp.xcworkspacefile of your project. - In the left-hand menu, select
iosApp. - Navigate to Signing & Capabilities.
- In the Team list, select your team.
If you haven't set up your team yet, use the Add account option and follow the steps.
To run the application, set the TEAM_ID:
- Navigate to the
Configuration/LocalConfig.xcconfigfile. - Set your
TEAM_ID. - Plug in your iOS device into the computer.
- Re-open the project in Android Studio. It should show the registered iOS device in the
iosApprun configuration. - You could also open the
catalog-iosAppproject and run it with Xcode