Skip to main content

eas-profile-build

  1. List the devices and if the device don't exist add the device usinge eas device:create
lerna exec --scope="*mobile-device" "eas device:create"
lerna notice cli v6.6.2
lerna notice filter including "*mobile-device"
lerna info filter [ '*mobile-device' ]
lerna info Executing command in 1 package: "eas device:create"
★ eas-cli@10.2.2 is now available.
To upgrade, run npm install -g eas-cli.
Proceeding with outdated version.

This command lets you register your Apple devices (iPhones, iPads and Macs) for internal distribution of your app.
Internal distribution means that you won't need to upload your app archive to App Store / Testflight.
Your app archive (.ipa) will be installable on your equipment as long as you sign your application with an adhoc provisioning profile.
The provisioning profile needs to contain the UDIDs (unique identifiers) of your iPhones, iPads and Macs.

First of all, choose the Expo account under which you want to register your devices.
Later, authenticate with Apple and choose your desired Apple Team (if your Apple ID has access to multiple teams).

✔ You're inside the project directory. Would you like to use the XXXXXX account? … yes
› Log in to your Apple Developer account to continue
✔ Apple ID: … xxxxx@xxxxx.com
› Restoring session /Users/xxxx/.app-store/auth/xxxxx@xxxxx.com/cookie
› Team XXXX LLC (XXXXX)
› Provider XXXX LLC (XXXXX)
✔ Logged in Local session
? How would you like to register your devices? › - Use arrow-keys. Return to submit.
❯ Website - generates a registration URL to be opened on your devices
Developer Portal - import devices already registered on Apple Developer Portal
Input - allows you to type in UDIDs (advanced option)
Current Machine - automatically sets the provisioning UDID of the current Apple Silicon machine
Exit
  1. move .npmrc to .npmrc.bk from root of the project, so the eas build wont' see this file.
mv .npmrc .npmrc.bk
  1. run eas preview manually from the IDE
lerna exec --scope="*mobile-device" yarn build:preview
lerna notice cli v6.6.2
lerna notice filter including "*mobile-device"
lerna info filter [ '*mobile-device' ]
lerna info Executing command in 1 package: "yarn build:preview"
yarn run v1.22.19
$ yarn easBuild --profile preview
$ eas build --profile preview
★ eas-cli@10.1.1 is now available.
To upgrade, run npm install -g eas-cli.
Proceeding with outdated version.

✔ Select platform › iOS
Loaded "env" configuration for the "preview" profile: NODE_ENV, GRAPHQL_URL, GA_ID, LOG_LEVEL, CLIENT_URL, APP_NAME, AUTH0_DOMAIN, AUTH0_CUSTOM_DOMAIN, AUTH0_API_AUDIENCE, AUTH0_REALM, AUTH0_CLIENT_ID, AUTH0_NATIVE_CLIENT_ID, AUTH0_CUSTOM_CLAIMS_NAMESPACE, AUTH0_TOKEN_GRANTED_TIME, LOGOUT_REDIRECT_PATH, HOME_SCREEN_PATH, DISABLE_EMAIL_VERIFICATION, LAYOUT_SETTINGS, SOCIAL_LOGIN_PROVIDERS. Learn more
✔ Using remote iOS credentials (Expo server)

If you provide your Apple account credentials we will be able to generate all necessary build credentials and fully validate them.
This is optional, but without Apple account access you will need to provide all the missing values manually and we can only run minimal validation on them.
✔ Do you want to log in to your Apple account? … yes

› Log in to your Apple Developer account to continue
✔ Apple ID: … xxxxxx@xxxxx.com
› Restoring session /Users/xxxxxx/.app-store/auth/xxxxx@xxxxx.com/cookie
› Session expired Local session
› Using password for xxxxx@xxxxx.com from your local Keychain
Learn more
✔ Logged in, verify your Apple account to continue
Two-factor Authentication (6 digit code) is enabled for xxxxxx@xxxx.com. Learn more: https://support.apple.com/en-us/HT204915

✔ How do you want to validate your account? … device / sms
✔ Please select a trusted phone number to send code to › +1 (•••) •••-••xx
✔ Please enter the 6 digit code you received at +1 (•••) •••-••xx: … 219070
✔ Valid code
✔ Logged in and verified
› Team XXXXX (XXXXXXXX)
› Provider XXXXX (XXXXXXX)
✔ Bundle identifier registered com.xxxxxx
✔ Synced capabilities: Enabled: Sign In with Apple
✔ Synced capability identifiers: No updates
✔ Fetched Apple distribution certificates
✔ Fetched Apple provisioning profiles
Provisioning profile (id: XXXXXXX) is no longer valid
✔ Select devices for the ad hoc build: › 4 devices selected
✔ Updated existing profile: *[expo] com.xxxxx AdHoc 17xxxxxxx0

Project Credentials Configuration

  1. Revert back the file .npmrc from .nprc.bk do not commit this change.