fastlane: Exit status: 65- Found multiple versions of Xcode in '/Applications/'
New Issue Checklist
- Updated fastlane to the latest version
- I have read the Contribution Guidelines
Issue Description
Hi, I added
xcversion(version: “8.2.1”) # Selects Xcode 8.2.1
xcode_select "/Applications/Xcode.app"
to the top of the Fastfile to specify the Xcode version as I have two Xcode apps. However, I’m still getting the following error when I run bundle exec fastlane beta
Complete output when running fastlane, including the stack trace and command used
You can use:
--capture_outputas the last commandline argument to get that collected for you
** ARCHIVE FAILED **
The following build commands failed:
CompileSwift normal arm64 /Users/zinfandel/Projects/Healthie/NewHealthie/newhealthieios/Healthie/AppDelegate.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
[17:12:04]: Exit status: 65
[17:12:05]: 📋 For a more detailed error log, check the full log at:
[17:12:05]: 📋 /Users/zinfandel/Library/Logs/gym/Healthie-Healthie.log
[17:12:05]: Found multiple versions of Xcode in '/Applications/'
[17:12:05]: Make sure you selected the right version for your project
[17:12:05]: This build process was executed using '/Applications/Xcode.app'
[17:12:05]: If you want to update your Xcode path, either
[17:12:05]:
[17:12:05]: - Specify the Xcode version in your Fastfile
[17:12:05]: ▸ xcversion(version: "8.1") # Selects Xcode 8.1.0
[17:12:05]:
[17:12:05]: - Specify an absolute path to your Xcode installation in your Fastfile
[17:12:05]: ▸ xcode_select "/Applications/Xcode8.app"
[17:12:05]:
[17:12:05]: - Manually update the path using
[17:12:05]: ▸ sudo xcode-select -s /Applications/Xcode.app
[17:12:05]:
+-------------+-------------------------+
| Build environment |
+-------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.18.0 |
| sdk | iPhoneOS10.2.sdk |
+-------------+-------------------------+
+---------------------+----------------------------------------------------------------------------+
| Lane Context |
+---------------------+----------------------------------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios beta |
| CERT_FILE_PATH | /Users/zinfandel/Projects/Healthie/NewHealthie/newhealthieios/Z2P5ZA2A3... |
| CERT_CERTIFICATE_ID | Z2P5ZA2A36 |
| SIGH_PROFILE_PATH | /Users/zinfandel/Projects/Healthie/NewHealthie/newhealthieios/AppStore_... |
| SIGH_PROFILE_PATHS | ["/Users/zinfandel/Projects/Healthie/NewHealthie/newhealthieios/AppStor... |
| SIGH_UDID | 2457159a-aa30-4d30-b0d1-313b3fa68b05 |
| SIGH_UUID | 2457159a-aa30-4d30-b0d1-313b3fa68b05 |
| SIGH_PROFILE_TYPE | app-store |
+---------------------+----------------------------------------------------------------------------+
[17:12:05]: 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 | xcversion | 5 |
| 4 | xcode_select | 0 |
| 5 | cocoapods | 120 |
| 6 | cert | 12 |
| 7 | sigh | 5 |
| 💥 | gym | 908 |
+------+-------------------------------------+-------------+
[17:12:07]: fastlane finished with errors
[!] Error building the application - see the log above
Environment
Please run fastlane env and copy the output below. This will help us help you 👍
If you used --capture_output option please remove this block - as it is already included there
🚫 fastlane environment 🚫
Stack
| Key | Value |
|---|---|
| OS | 10.11.6 |
| Ruby | 2.4.0 |
| Bundler? | true |
| Git | git version 2.10.1 (Apple Git-78) |
| Installation Source | ~/.rvm/gems/ruby-2.4.0/bin/fastlane |
| Host | Mac OS X 10.11.6 (15G1004) |
| Ruby Lib Dir | ~/.rvm/rubies/ruby-2.4.0/lib |
| OpenSSL Version | OpenSSL 1.1.0e 16 Feb 2017 |
| Is contained | false |
| Is homebrew | false |
| Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version | 8.2.1 |
System Locale
| Variable | Value | |
|---|---|---|
| LANG | en_US.UTF-8 | ✅ |
| LC_ALL | ||
| LANGUAGE |
fastlane files:
`./fastlane/Fastfile`
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://docs.fastlane.tools/actions
# can also be listed using the `fastlane actions` command
# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`
# If you want to automatically update fastlane if a new version is available:
# update_fastlane
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "2.14.2"
default_platform :ios
xcversion(version: “8.2.1”) # Selects Xcode 8.2.1
xcode_select "/Applications/Xcode.app"
platform :ios do
before_all do
# ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
cocoapods
end
desc "Runs all the tests"
lane :test do
scan
end
desc "Submit a new Beta Build to Apple TestFlight"
desc "This will also make sure the profile is up to date"
lane :beta do
cert
sigh
ENV gym
testflight # upload your app to TestFlight
slack(message: "Successfully distributed a new beta build")
# sh "your_script.sh"
# You can also use other beta testing services here (run `fastlane actions`)
end
desc "Deploy a new version to the App Store"
lane :appstore do
snapshot # generate new screenshots for the App Store
cert
sigh
gym(scheme: "Healthie”) # build your app
appstore # upload your app to iTunes Connect
slack(message: "Successfully uploaded a new App Store build")
end
# You can define as many lanes as you want
after_all do |lane|
# This block is called, only if the executed lane was successful
# slack(
# message: "Successfully deployed new App Update."
# )
end
error do |lane, exception|
# slack(
# message: exception.message,
# success: false
# )
end
end
# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
# All available actions: https://docs.fastlane.tools/actions
# fastlane reports which actions are used
# No personal data is recorded. Learn more at https://github.com/fastlane/enhancer
`./fastlane/Appfile`
app_identifier "com.restlessapps.Healthie" # The bundle identifier of your app
apple_id "zzmehdi@gmail.com" # Your Apple email address
team_id "3YS5BCZ384" # Developer Portal Team ID
# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md
fastlane gems
| Gem | Version | Update-Status |
|---|---|---|
| fastlane | 2.18.0 | 🚫 Update available |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
| Gem | Version |
|---|---|
| did_you_mean | 1.1.0 |
| executable-hooks | 1.3.2 |
| bundler-unload | 1.0.2 |
| rubygems-bundler | 1.4.4 |
| bundler | 1.14.4 |
| io-console | 0.4.6 |
| openssl | 2.0.2 |
| CFPropertyList | 2.3.5 |
| i18n | 0.8.0 |
| minitest | 5.10.1 |
| thread_safe | 0.3.5 |
| tzinfo | 1.2.2 |
| activesupport | 4.2.8 |
| public_suffix | 2.0.5 |
| addressable | 2.5.0 |
| babosa | 1.0.2 |
| claide | 1.0.1 |
| fuzzy_match | 2.0.4 |
| nap | 1.1.0 |
| cocoapods-core | 1.2.0 |
| cocoapods-deintegrate | 1.0.1 |
| cocoapods-downloader | 1.1.3 |
| cocoapods-plugins | 1.0.0 |
| cocoapods-search | 1.0.0 |
| cocoapods-stats | 1.0.0 |
| netrc | 0.7.8 |
| cocoapods-trunk | 1.1.2 |
| cocoapods-try | 1.1.0 |
| colored | 1.2 |
| escape | 0.0.4 |
| fourflusher | 2.0.1 |
| gh_inspector | 1.0.3 |
| molinillo | 0.5.6 |
| ruby-macho | 0.2.6 |
| nanaimo | 0.2.3 |
| xcodeproj | 1.4.2 |
| cocoapods | 1.2.0 |
| highline | 1.7.8 |
| commander | 4.4.3 |
| unf_ext | 0.0.7.2 |
| unf | 0.1.4 |
| domain_name | 0.5.20161129 |
| dotenv | 2.2.0 |
| excon | 0.55.0 |
| multipart-post | 2.0.0 |
| faraday | 0.11.0 |
| http-cookie | 1.0.3 |
| faraday-cookie_jar | 0.0.6 |
| faraday_middleware | 0.11.0.1 |
| fastimage | 2.0.1 |
| jwt | 1.5.6 |
| little-plugger | 1.1.4 |
| multi_json | 1.12.1 |
| logging | 2.1.0 |
| memoist | 0.15.0 |
| os | 0.9.6 |
| signet | 0.7.3 |
| googleauth | 0.5.1 |
| httpclient | 2.8.3 |
| hurley | 0.2 |
| mime-types-data | 3.2016.0521 |
| mime-types | 3.1 |
| uber | 0.0.15 |
| representable | 2.3.0 |
| retriable | 2.1.0 |
| google-api-client | 0.9.28 |
| json | 2.0.3 |
| mini_magick | 4.5.1 |
| multi_xml | 0.6.0 |
| plist | 3.2.0 |
| rubyzip | 1.2.1 |
| security | 0.1.3 |
| slack-notifier | 1.5.1 |
| terminal-notifier | 1.7.1 |
| unicode-display_width | 1.1.3 |
| terminal-table | 1.7.3 |
| tty-screen | 0.5.0 |
| word_wrap | 1.0.0 |
| rouge | 1.11.1 |
| xcpretty | 0.2.4 |
| xcpretty-travis-formatter | 0.0.4 |
| xcode-install | 2.1.1 |
generated on: 2017-02-21
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 5
- Comments: 45 (20 by maintainers)
Running into this same issue? Any solutions so far? I specify
xcversion(version: "8.3.1")and I ensure withensure_xcode_versioncommand. It seems like it builds fine and then it won’t export or do some final step … because I get this message:Saying the “This build process was executed” … ?? What’s happening?
These are related to the CoreData model I instantiated just today. My fastlane problem has long been present before that.
BTW, seriously thinking about a fresh macOS install.
This seems to be a bug in Fastlane, this error is presented because of different underlying problems, even though the Xcode version is already set in the Fastfile and definitely satisfied by the installation. Currently my gym fails for yet unknown reasons, and the output does not seem to point to the actual problem itself. So this error in my case is quite surely wrong. Maybe there is a global issue with printing this info? I am not asking for input fixing my current issue, rather than I am quite sure this error is being printed too many times even when it cannot be the problem. So that is what I would like to get fixed 😃