fastlane: Fastlane failing at step gym, getting Exit Status: 65, CodeSign build commands failing
Hey all,
Sorry if this is a dumb question but this is my first go with fastlane.
I’ve matched up with my coworker but something is blocking my ability to build the app with gym and push it to testflight
I’m running the command:
fastlane ios beta
and the process is failing in gym, the error is the following:
The following build commands failed:
CodeSign /Users/cm/Library/Developer/Xcode/DerivedData/OnDeck-ftohruvlpgqajhhbppffshjfjvwm/Build/Intermediates/ArchiveIntermediates/OnDeck/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/EZLoadingActivity.framework
CodeSign /Users/cm/Library/Developer/Xcode/DerivedData/OnDeck-ftohruvlpgqajhhbppffshjfjvwm/Build/Intermediates/ArchiveIntermediates/OnDeck/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FLKAutoLayout.framework
CodeSign /Users/cm/Library/Developer/Xcode/DerivedData/OnDeck-ftohruvlpgqajhhbppffshjfjvwm/Build/Intermediates/ArchiveIntermediates/OnDeck/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Cosmos.framework
CodeSign /Users/cm/Library/Developer/Xcode/DerivedData/OnDeck-ftohruvlpgqajhhbppffshjfjvwm/Build/Intermediates/ArchiveIntermediates/OnDeck/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaAsyncSocket.framework
(4 failures)
[17:56:06]: Exit status: 65
[17:56:06]: Variable Dump:
[17:56:06]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios beta"}
[17:56:06]: Error building the application - see the log above
+------+-------------------------------------+-------------+
| fastlane summary |
+------+-------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+-------------------------------------+-------------+
| 1 | Verifying required fastlane version | 0 |
| 2 | default_platform | 0 |
| 3 | cocoapods | 6 |
| 4 | gym | 27 |
+------+-------------------------------------+-------------+
Fastfile for beta:
desc "This will also make sure the profile is up to date"
lane :beta do
# match(type: "appstore") # more information: https://codesigning.guide
gym(scheme: "OnDeck") # Build your app - more options available
pilot
# sh "your_script.sh"
# You can also use other beta testing services here (run `fastlane actions`)
end
I’m completely stuck on what this Exit Status: 65 is and how I should proceed.
Previous discussions around this Exit Status : 65 haven’t pointed me in the right direction.
https://github.com/fastlane/fastlane/issues/1849
I’m sure I’m missing something simple here, any suggestions?
Please let me know if a full output will help, it’s quite large given the amount of pods we’re using.
Fastlane Version - 1.81.0
No bundler or Ruby environment manager
Thanks in advance,
Conor
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 59 (4 by maintainers)
guys, I figured it for myself: before the gym I was doing “security unlock-keychain” but didn’t know that it unlocks it for 300 seconds by default.
setting longer time interval fixes it:
security set-keychain-settings -t 3600 -l ~/Library/Keychains/login.keychainwith fastlane_version “1.102.0” if there is RunScript in the Xcode Project. fast lane ** ARCHIVE FAILED ** [22:14:28]: Exit status: 65 Any suggestion how to fix this
I get this issue on all my XCode 8 projects Using: fastlane 1.103.0 , sigh 1.10.3 and gym 1.9.0 It works when I archive from XCode, but not Fastlane
@niklasberglund your code signing settings shouldn’t be
iOS Developer, since that can only be used for Development builds. Instead please set it toiOS Distribution. Also, I’d recommend not usingAutomatic, but use an environment variable in combination with match instead: https://github.com/fastlane/fastlane/tree/master/match#setup-xcode-projectOK, I’ve located my problem.
xcodebuildfails to compile PromiseKit on a new Travis xcode 7.3.1 image with a segmentation fault 11Killed
Foundationsubspec dependency and all the rest code was built fine. When compiling with xcode andDebugscheme - no error occurs.Edit: That seems to be a regression of XCode 7.3.1 For those one of you who experiencing this problem - try to locate failing code and file a report to apple. And do not upgrade on 7.3.1 yet =)
The problem was signing (even tho the error does not explain it so well). Signing has changed in XCode 8. And Gym is a bit more strict than XCode it seems.
In my
~/Library/Logs/gym/PROJECT.logI could see that I had conflicting provisioning profiles. I turned off Automatically manage signing in the general tab. And select the provisioning profiles manually.In the Build settings tag I set Debug=iPhone Developer and Release=iPhone Distribution and set the Development team.
The provisioning profile in the Build settings should now inherit from the once you set in the general tab.
Guys I had the same problem with XCode 8, I fixed it when I checked the tab General ( in the target ) and selecting the right Provisioning profile in Signing ( Debug ) and Signing ( Release )
I tried to do the same in Build and Setting and it didn’t work.
Also make sure Automatically manage signing is deactivated
I hope this helps 😃
I had this too, but with scan. For me it was an async test case with an expectation. This test case would crash the test runner when calling waitForExpectationsWithTimeout. Which was super weird because it would only happen on some machines but not all. And the test case had not been touched in months. So I refactored the test case to use GCD locking instead of waitForExpectationsWithTimeout and the problem was gone.
@TKBurner Thank you so much for your enthusiast. The errors came from my configuration. Now, It runs as normal.
After did 2 and 3, It run ok.
I got it! What I had to do is unlock the keychain. Last lines from
/Users/jenkins/Library/Logs/gym/fastlanetest-fastlanetestBeta.logwere:Here User interaction is not allowed means that there is no access to the Keychain.
So
unlock_keychain(path: "login.keychain", password: options[:keychain_password])right beforegymdid the trick.