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
2 Answers
Reset to default 1After debugging, this was the answer:
- Run a build with
EAS_LOCAL_BUILD_SKIP_CLEANUP=1 eas build --platform ios --profile preview --local
- Pull the logs from the error log
- 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.