fastlane: Runtime error archiving

Original issue by @gametimebuildserver - Imported from fastlane/gym#113
The following build commands failed:
Libtool /Users/bserver/Library/Developer/Xcode/DerivedData/Gametime-afosxnghsgtxcyajgrkdraetxdxg/Build/Intermediates/ArchiveIntermediates/Beta/IntermediateBuildFilesPath/Pods.build/Beta-iphoneos/Braintree.build/Objects-normal/arm64/libBraintree.a normal arm64
(1 failure)
[17:52:18]: Exit status: 65
/Library/Ruby/Gems/2.0.0/gems/gym-0.8.4/lib/gym/error_handler.rb:52:in `handle_build_error': Error building the application - see the log above (RuntimeError)
    from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.4/lib/gym/runner.rb:80:in `block in build_app'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.18.2/lib/fastlane_core/command_executor.rb:51:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.18.2/lib/fastlane_core/command_executor.rb:51:in `execute'
    from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.4/lib/gym/runner.rb:76:in `build_app'
    from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.4/lib/gym/runner.rb:10:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.4/lib/gym/manager.rb:8:in `work'
    from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.4/lib/gym/commands_generator.rb:41:in `block (2 levels) in run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.4/lib/gym/commands_generator.rb:58:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.4/lib/gym/commands_generator.rb:14:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.4/bin/gym:6:in `<top (required)>'
    from /usr/local/bin/gym:23:in `load'
    from /usr/local/bin/gym:23:in `<main>'

command I was running:

gym --workspace “projname.xcworkspace” --scheme “Beta” -o $HOME/Desktop/build/ --use_legacy_build_api --clean

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

We ran into a similar issue recently with fastlane failing on developer laptops with this error towards the last stage of the build.

** ARCHIVE FAILED **

[12:23:31]: Exit status: 65

It worked fine for many weeks for our developers. Our jenkins build server did not see this error with the same fastfile. We investigated potential changes and differences. We added a couple of new pods to our ap recently and we always run Xcode on the developer machines. On the build server we don’t run the Xcode App although we do use some of the Xcode command line tools. Xcode versions are same on both.

The workaround in our case was to drop the Xcode derived data directory on the developer laptops after first exiting Xcode App.

rm -rf /Users/vamsee/Library/Developer/Xcode/DerivedData/Onkore-cqhdpxkmthcxrffvifokbmbpdrxi/

After this the “Exit status: 65” problem went away. This is with fastlane 1.95.0