如何在实体手机上构建和测试 iOS 应用:Expo EAS 和 Apple TestFlight(第 2/3 部分)
发布: (2026年2月16日 GMT+8 08:52)
3 分钟阅读
原文: Dev.to
Source: Dev.to
构建生产(App Store 签名)二进制文件
eas build --platform ios --profile production
出现提示时,让 EAS 管理:
- 证书
- 配置描述文件
- 签名
这将生成一个 App Store 签名的 IPA。
Resolved "production" environment for the build. Learn more: https://docs.expo.dev/eas/environment-variables/#setting-the-environment-for-your-builds
....
✔ Incremented buildNumber from 3 to 4.
✔ Using remote iOS credentials (Expo server)
✔ Do you want to log in to your Apple account? … yes
› Log in to your Apple Developer account to continue
✔ Apple ID: … cathy.xxxx@xxxxx.com
› Restoring session /Users/cathy/.app-store/auth/cathy.xxxx@xxxxx.com/cookie
› Session expired Local session
› Using password for cathy.xxxx@xxxxx.com from your local Keychain
Learn more: https://docs.expo.dev/distribution/security#keychain
✔ Logged in New session
› Team Cathy Lai (XXXXXX)
› Provider Cathy Lai (xxxxxxxx)
✔ Bundle identifier registered com.cathyapp1234.oauthpro2
✔ Synced capabilities: No updates
✔ Synced capability identifiers: No updates
✔ Fetched Apple distribution certificates
✔ Fetched Apple provisioning profiles
项目凭证配置
Project @cathyapp1234/oauth-pro2
Bundle Identifier com.cathyapp1234.oauthpro2
分发证书和配置描述文件会自动生成。它们相当于 Apple 的“许可单”,允许二进制文件在特定设备上运行。
App Store 配置细节
Distribution Certificate
Serial Number XXXXXXXDA97EA34FFC3B28C8BA6C44
Expiration Date Tue, 04 Aug 2026 05:10:17 GMT+1200
Apple Team XXXXXX (Cathy Lai (Individual))
Updated 6 months ago
Provisioning Profile
Developer Portal ID XxXXXXXXXX
Status active
Expiration Tue, 04 Aug 2026 05:10:17 GMT+1200
Apple Team XXXXXXXXXX (Cathy Lai (Individual))
Updated 17 days ago
所有凭证已准备好用于构建 @cathyapp1234/oauth-pro2(com.cathyapp1234.oauthpro2)。
Compressing project files and uploading to EAS Build. Learn more: https://expo.fyi/eas-build-archive
✔ Uploaded to EAS 1s
✔ Computed project fingerprint
See logs: https://expo.dev/accounts/cathyapp1234/projects/oauth-pro2/builds/xxxxxxx
Waiting for build to complete. You can press Ctrl+C to exit.
Build queued...
Waiting in priority queue
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■|
✔ Build finished
🍏 iOS app:
https://expo.dev/artifacts/eas/xxxxxxxxx.ipa
自动 App Store Connect 集成
Expo 将自动在 App Store Connect 中创建应用记录:
- 已创建应用记录
- 已注册 Bundle ID
- 已上传构建
随后该构建会出现在 TestFlight 中。


后续步骤
添加测试人员(通过电子邮件),让他们收到 TestFlight 邀请并下载应用。
完整过程的视频可供参考。