Last active
October 1, 2017 23:47
-
-
Save ygweric/f45deaed5311c411c8d170b07fe1945c to your computer and use it in GitHub Desktop.
Jenkins+fastlane troubleshooting on iOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jenkin + fastlane draft | |
brew services start jenkins-lts | |
brew services restart jenkins-lts | |
PATH=$PATH:/usr/local/bin/ | |
# ENV["FASTLANE_PASSWORD"] = "123123123" | |
cert | |
sigh | |
gym(scheme: "Demo", | |
workspace: "Demo.xcworkspace", | |
export_options: { | |
provisioningProfiles: { | |
"com.Demo.ios" => "AppStore_com.Demo.ios" | |
} | |
} | |
) | |
Troubleshooting | |
https://github.com/fastlane/fastlane/blob/master/scan/lib/scan/error_handler.rb | |
[12:20:09]: Your shell environment is not correctly configured | |
[12:20:09]: Instead of UTF-8 your shell uses US-ASCII | |
[12:20:09]: Please add the following to your '~/.bashrc': | |
[12:20:09]: | |
[12:20:09]: export LANG=en_US.UTF-8 | |
[12:20:09]: export LANGUAGE=en_US.UTF-8 | |
[12:20:09]: export LC_ALL=en_US.UTF-8 | |
[12:20:09]: | |
[12:20:09]: You'll have to restart your shell session after updating the file. | |
[12:20:09]: If you are using zshell or another shell, make sure to edit the correct bash file. | |
[12:20:09]: For more information visit this stackoverflow answer: | |
[12:20:09]: https://stackoverflow.com/a/17031697/445598 | |
If you want to set the encoding on a system level in your Jenkins installation, you can add it as a global properties key-value pair (Jenkins -> Manage Jenkins -> Configure System) with name=LANG and value=<insert your locale here> (which in my case equals en_GB.UTF-8). That way you avoid setting the locale for every Jenkins job. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment