react-nativeexpoeas

eas build --local failing due to ARCHIVE FAILED (exit status 65)


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?


Solution

  • 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