最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

react native - eas build --local failing due to ARCHIVE FAILED (exit status 65) - Stack Overflow

programmeradmin3浏览0评论

I've been trying to debug this for a while now, but nothing has worked so far. I've tried re-starting my laptop too.

My build runs fine on eas servers, but it fails locally: eas build --platform ios --profile preview --local (i've also tried with --clear-cache)

[RUN_FASTLANE] ▸  ARCHIVE FAILED 
[RUN_FASTLANE] ▸ The following build commands failed:
[RUN_FASTLANE] ▸     Archiving workspace ____ with scheme ____
[RUN_FASTLANE] ▸ (1 failure)
[RUN_FASTLANE]  ARCHIVE FAILED 
[RUN_FASTLANE] 
[RUN_FASTLANE] 
[RUN_FASTLANE] The following build commands failed:
[RUN_FASTLANE]     Archiving workspace ____ with scheme ____
[RUN_FASTLANE] (1 failure)
[RUN_FASTLANE] Exit status: 65
[RUN_FASTLANE] 
[RUN_FASTLANE] +---------------------------------------+
[RUN_FASTLANE] |           Build environment           |
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE] | xcode_path  | /Applications/Xcode.app |
[RUN_FASTLANE] | gym_version | 2.226.0                 |
[RUN_FASTLANE] | sdk         | iPhoneOS18.2.sdk        |
[RUN_FASTLANE] +-------------+------------------------

Any ideas on how to solve this issue?

I've been trying to debug this for a while now, but nothing has worked so far. I've tried re-starting my laptop too.

My build runs fine on eas servers, but it fails locally: eas build --platform ios --profile preview --local (i've also tried with --clear-cache)

[RUN_FASTLANE] ▸  ARCHIVE FAILED 
[RUN_FASTLANE] ▸ The following build commands failed:
[RUN_FASTLANE] ▸     Archiving workspace ____ with scheme ____
[RUN_FASTLANE] ▸ (1 failure)
[RUN_FASTLANE]  ARCHIVE FAILED 
[RUN_FASTLANE] 
[RUN_FASTLANE] 
[RUN_FASTLANE] The following build commands failed:
[RUN_FASTLANE]     Archiving workspace ____ with scheme ____
[RUN_FASTLANE] (1 failure)
[RUN_FASTLANE] Exit status: 65
[RUN_FASTLANE] 
[RUN_FASTLANE] +---------------------------------------+
[RUN_FASTLANE] |           Build environment           |
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE] | xcode_path  | /Applications/Xcode.app |
[RUN_FASTLANE] | gym_version | 2.226.0                 |
[RUN_FASTLANE] | sdk         | iPhoneOS18.2.sdk        |
[RUN_FASTLANE] +-------------+------------------------

Any ideas on how to solve this issue?

Share Improve this question edited Mar 23 at 18:16 Ganning Xu asked Mar 17 at 22:38 Ganning XuGanning Xu 4721 gold badge5 silver badges17 bronze badges 2
  • 2 You need to find your Xcode logs and check those to learn the real cause. – Slbox Commented Mar 18 at 3:13
  • 1 @Slbox thank you! after checking the logs, it seems like i had issues with my provisioning profile. – Ganning Xu Commented Mar 18 at 17:02
Add a comment  | 

2 Answers 2

Reset to default 1

After debugging, this was the answer:

  1. Run a build with EAS_LOCAL_BUILD_SKIP_CLEANUP=1 eas build --platform ios --profile preview --local
  2. Pull the logs from the error log
  3. If the error is because "Provisioning profile "*[expo] XXX AdHoc XXX" doesn't include signing certificate "Apple Distribution: XXX" #1201”, then follow this comment: (delete all apple distribution…) vertificates in keychain access, then use this comment: Provisioning profile "*[expo] XXX AdHoc XXX" doesn't include signing certificate "Apple Distribution: XXX" · Issue #1201 · expo/eas-cli

The archive failed is likely an XCode command line tools error.

You could try running the app locally without eas. Make sure that your phone and computer are on the same Wi-Fi network.

You can also follow this guide if you are trying to push out a production build.

发布评论

评论列表(0)

  1. 暂无评论