-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARCHIVE FAILED: Exit status: 65, Gym failed #20130
Comments
I have same issue. If call same xcodebuild command from log, all works fine |
Can you explain a little bit more, how are you calling xcodebuild? |
I'm only try call command from the fastlane build log. But preffer to use fastlane. Did you try to use previous fastlane version? |
okay, let me directly use xcodebuild command. |
same here :(
|
in my case it was a react-native issue react-native-community/upgrade-support#138 |
Has anyone found a solution to this? I've updated my mac and Xcode now gym is failing. Unsure what it could be. |
Seeing a similar issue here, was working a few days ago but has failed today without any changes |
I had an exit code 65 looking over my logs I found I had a custom script that was copying a env file. For some reason that started causing a build error in the new xCode. I deleted that script by editing the scheme config. Unsure this will be related to your issue but might be a cause for someone in the future. |
For me it was a combination of a custom script, downgrading from xcode 13.3.1 to 13.2.1 & downgrading ruby to 3.0.3 from 3.1.3, which was the last setup that worked for me.. Hope this helps someone else. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Friendly reminder: contributions are always welcome! Check out CONTRIBUTING.md for more information on how to help with This issue will be auto-closed if there is no reply within 1 month. |
I'm having the exactly same issue building with Github Actions. same as #20276 I'm able to build with my Mac (M1) just fine. |
For the people that have this issue: If it contains It's may be an issue with linker flags conflicting with symbol stripping, try removing
and it started working correctly. |
Facing the same issue in CI for a month now and we can't figure out what's causing the error.
|
It just means that command that was being run in PhaseScriptExecution wasn't successful, you have to check detailed logs from the execution. The location of the log is probably mentioned somewhere in the fastlane output. |
I had the exact same problem and finally found out that the cause of this error because i haven't put my |
I just solved this issue by opening Xcode and found out that in the iMac (where I got the error) the project did not have In-App Purchases capabilities and the signing team was none, so I had to login into Apple to assign a team. For some reason, the new setup erased my previous configs.. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Friendly reminder: contributions are always welcome! Check out CONTRIBUTING.md for more information on how to help with This issue will be auto-closed if there is no reply within 1 month. |
In my case, there was no error message in fastlane or xcode build's output when archive failed. If you encounter the same situation, this SO answer pointed to where the missing error message can be found. |
I was having this issue on GitHub actions while trying to run fastlane with match to deploy iOS app to TestFlight, what fixed for me was disable_automatic_code_signing before calling match.
|
Add
Resolved the issue for me |
When using match + gym on Fastlane. Using
|
In my case, it has something to do with the provisioning files, certificates I chose to build. Some of the certificates is missing in one of my machines, and it lead to this error. And there's no error message related to certificates or provisioning files in Fastlane console. The errors show when I archive on Xcode. |
@LoyaltyWu could you explain last sentence in detail? |
Same here, when running locally everything's fine, but on GitHub Actions it fails with exit status 65 |
For me this was an issue with provisioning profiles. The Frustrating that a more helpful error message isn't spit out, but hope this helps someone else out. Ultimately I noticed this by looking at the output of |
I also encountered a similar problem. After reading the log, I found more detailed reasons, which were caused by certificate conflict |
I received this issue after upgrading to xcode 14. |
This fixed my error as well, thanks! |
Had this problem, struggled for days to solve it. Putting my solution here too for posterity: I'm using Flutter, but I think this applies globally. If you introduce a new iOS build target into your app, and that target required you to add a new identifier, your fastlane instance probably needs a 2nd mobile provision referenced. For example, my original project referenced Check https://developer.apple.com/account/resources/identifiers/list to see if a new identifier got added to your project. For me, I had created a Broadcast Extension to enable screen-share on LiveKit.io. As part of the process, I had to create a new Upload Broadcast Extension target in my XCode project. I did so without updating fastlane with a second mobile provision, and my builds began failing. The solution was to create a second provisioning profile for my broadcast extension at https://developer.apple.com/account/resources/profiles/list with the new identifier. Then, install both my provisioning profiles with:
Finally, create an
For CI/CD, I recommend using https://github.com/yukiarrr/ios-build-action which massively simplifies the iOS build process headache. I hope this helps fellow engineers! |
My can similar to This might help someone as it helped me, where I'm running this as Github Action, and archiving keep fail with no clear reason, and I can't access the logs file. So I needed to see the log files that are being generated by Fastlane where it exists in (as it is clear in Fastlane logs)
or to always run this
And turns out my problem with the provisioning profile, and as you know Fastlane match creats one but I am using automatic signing and not the one created by match, I've found the solution [here] (#18182 (comment)) where you just have to uncheck the auto signing and select the match provisioning profile in xcode and on all extensions (if there is one, for me its OneSignal extension) and fixed by issue, hope this helps someone out there |
I only have this problem when i run my fastlane command with a runner, when i use the same environment and execute the command on the host directly it works. It worked with the same runner before the xcodee 14 update. Does anyone have a clue? |
i fixed it by changing the environment, i guess it was |
Flutter dev here. I had to login again in XCode with my Apple account after a year or so... |
I am able to build archive using xcode successfully.
When i run $ fastane do_everything_dev
i get below error for last 5 days. The same code was working before without any code change.
ARCHIVE FAILED **
[19:55:48]: Exit status: 65
+---------------+-------------------------+
| Build environment |
+---------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.205.1 |
| export_method | ad-hoc |
| sdk | iPhoneOS15.2.sdk |
+---------------+-------------------------+
[19:55:48]: ▸ cd /Users/mdmozammil/core/productapp/ios-mobiquity-consumer-core-app
[19:55:48]: ▸ /usr/bin/touch -c /Users/mdmozammil/Library/Developer/Xcode/DerivedData/MobiquityConsumer-gwhebhwduquhohgsnwhfrgwhxoku/Build/Intermediates.noindex/ArchiveIntermediates/DEV/InstallationBuildProductsLocation/Applications/mobiquity\ Pay\ DEV.app
[19:55:48]: ▸ /Users/mdmozammil/core/productapp/ios-mobiquity-consumer-core-app/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'SwiftEventBus' from project 'Pods')
[19:55:48]: ▸ /Users/mdmozammil/core/productapp/ios-mobiquity-consumer-core-app/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'FSCalendar' from project 'Pods')
[19:55:48]:
[19:55:48]: ⬆️ Check out the few lines of raw
xcodebuild
output above for potential hints on how to solve this error[19:55:48]: 📋 For the complete and more detailed error log, check the full log at:
[19:55:48]: 📋 /Users/mdmozammil/Library/Logs/gym/mobiquity Pay-DEV.log
[19:55:48]:
[19:55:48]: Looks like fastlane ran into a build/archive error with your project
[19:55:48]: It's hard to tell what's causing the error, so we wrote some guides on how
[19:55:48]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[19:55:48]: Before submitting an issue on GitHub, please follow the guide above and make
[19:55:48]: sure your project is set up correctly.
[19:55:48]: fastlane uses
xcodebuild
commands to generate your binary, you can see the[19:55:48]: the full commands printed out in yellow in the above log.
[19:55:48]: Make sure to inspect the output above, as usually you'll find more error information there
[19:55:48]:
+------------------+-----------------------+
| Lane Context |
+------------------+-----------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios do_everything_dev |
| BUILD_NUMBER | 20 |
+------------------+-----------------------+
[19:55:48]: Error building the application - see the log above
+------+------------------------+-------------+
| fastlane summary |
+------+------------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------------+-------------+
| 1 | default_platform | 0 |
| 2 | Switch to ios clean | 0 |
| | lane | |
| 3 | clear_derived_data | 0 |
| 4 | Switch to ios | 0 |
| | build_beta_dev lane | |
| 5 | automatic_code_signin | 0 |
| | g | |
| 6 | increment_build_numbe | 2 |
| | r | |
| 💥 | gym | 650 |
+------+------------------------+-------------+
[19:55:48]: fastlane finished with errors
[!] Error building the application - see the log above
MCKL-7364:ios-mobiquity-consumer-core-app mdmozammil$ fastlane env
[✔] 🚀
[20:12:47]: fastlane detected a Gemfile in the current directory
[20:12:47]: However, it seems like you didn't use
bundle exec
[20:12:47]: To launch fastlane faster, please use
[20:12:47]:
[20:12:47]: $ bundle exec fastlane env
[20:12:47]:
[20:12:47]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[20:12:49]: Generating fastlane environment output, this might take a few seconds...
swift-driver version: 1.26.21
🚫 fastlane environment 🚫
Stack
System Locale
fastlane files:
`./fastlane/Fastfile`
`./fastlane/Appfile`
fastlane gems
Loaded fastlane plugins:
Loaded gems
generated on: 2022-03-28
The text was updated successfully, but these errors were encountered: