Skip to content

Instantly share code, notes, and snippets.

@eytanschulman
Created October 31, 2017 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eytanschulman/ad570aee2becadfd3e58f512fcc025be to your computer and use it in GitHub Desktop.
Save eytanschulman/ad570aee2becadfd3e58f512fcc025be to your computer and use it in GitHub Desktop.
Fastlane Deployment Issue
[03:19:48]: Starting login with user 'eytan@yellzz.com'
[03:19:49]: Successfully logged in
[03:19:49]: Fetching profiles...
[03:19:49]: Verifying certificates...
[03:19:50]: Found 1 matching profile(s)
[03:19:50]: Downloading provisioning profile...
[03:19:51]: Successfully downloaded provisioning profile...
[03:19:51]: Installing provisioning profile...
/Users/vagrant/git/AppStore_com.yellzz.scootapp.mobileprovision
[03:19:51]: Setting Provisioning Profile type to 'app-store'
[03:19:51]: -----------------
[03:19:51]: --- Step: gym ---
[03:19:51]: -----------------
[03:19:51]: Successfully loaded '/Users/vagrant/git/fastlane/Gymfile' 📄
+---------------------+---------------------+
| Detected Values from './fastlane/Gymfile' |
+---------------------+---------------------+
| output_directory | ./ |
+---------------------+---------------------+
[03:19:51]: Successfully loaded '/Users/vagrant/git/fastlane/Gymfile' 📄
[03:19:51]: No values defined in './fastlane/Gymfile'
[03:19:51]: $ xcodebuild -list -workspace YellzzIos.xcworkspace -configuration Production
[03:19:54]: $ xcodebuild -showBuildSettings -workspace YellzzIos.xcworkspace -scheme Scoot -configuration Production
[03:19:57]: Detected provisioning profile mapping: {:"com.yellzz.scootapp"=>"XC iOS: com.yellzz.scootapp"}
+---------------------------------------------------------+-----------------------------------------------------------------------------+
| Summary for gym 2.62.1 |
+---------------------------------------------------------+-----------------------------------------------------------------------------+
| workspace | YellzzIos.xcworkspace |
| configuration | Production |
| scheme | Scoot |
| silent | true |
| clean | true |
| output_name | scoot-chat |
| sdk | 10.3 |
| export_method | app-store |
| export_options.provisioningProfiles.com.yellzz.scootapp | XC iOS: com.yellzz.scootapp |
| output_directory | ./ |
| destination | generic/platform=iOS |
| build_path | /Users/vagrant/Library/Developer/Xcode/Archives/2017-10-31 |
| skip_package_ipa | false |
| buildlog_path | /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/fastlane_logs897665796/gym |
| skip_profile_detection | false |
| xcode_path | /Applications/Xcode.app |
+---------------------------------------------------------+-----------------------------------------------------------------------------+
[03:19:58]: ▸ xcodebuild: error: SDK "10.3" cannot be located.
xcodebuild: error: SDK "10.3" cannot be located.
[03:19:58]: Exit status: 64
+---------------+-------------------------+
| Build environment |
+---------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.62.1 |
| export_method | app-store |
| sdk | iPhoneOS10.3.sdk |
+---------------+-------------------------+
[03:19:58]: Sending crash report...
[03:19:58]: The stack trace is sanitized so no personal information is sent.
[03:19:58]: To see what we are sending, look here: /Users/vagrant/.fastlane/latest_crash.json
[03:19:58]: Learn more at https://github.com/fastlane/fastlane#crash-reporting
[03:19:58]: You can disable crash reporting by adding `opt_out_crash_reporting` at the top of your Fastfile
+---------------------+---------------------------------------------------------------------+
| Lane Context |
+---------------------+---------------------------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios scootBeta |
| CERT_FILE_PATH | /Users/vagrant/git/MM8CC47VKM.cer |
| CERT_CERTIFICATE_ID | XXXXXXXXXX |
| SIGH_PROFILE_PATH | /Users/vagrant/git/AppStore_com.yellzz.scootapp.mobileprovision |
| SIGH_PROFILE_PATHS | ["/Users/vagrant/git/AppStore_com.yellzz.scootapp.mobileprovision"] |
| SIGH_UDID | 9340d7e5-d2a7-423c-adc7-66626d30f47e |
| SIGH_UUID | 9340d7e5-d2a7-423c-adc7-66626d30f47e |
| SIGH_NAME | XC iOS: com.yellzz.scootapp |
| SIGH_PROFILE_TYPE | app-store |
+---------------------+---------------------------------------------------------------------+
[03:19:58]: undefined method `each' for nil:NilClass
+------+-------------------------------------+-------------+
| fastlane summary |
+------+-------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+-------------------------------------+-------------+
| 1 | Verifying required fastlane version | 0 |
| 2 | default_platform | 0 |
| 3 | cocoapods | 13 |
| 4 | cert | 4 |
| 5 | sigh | 3 |
| 💥 | gym | 7 |
+------+-------------------------------------+-------------+
[03:19:58]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
➡️ undefined method `to_sym' for nil:NilClass when running gym
https://github.com/fastlane/fastlane/issues/10717 [closed] 5 💬
19 hours ago
➡️ undefined method `id' for nil:NilClass while fastlane sigh repair
https://github.com/fastlane/fastlane/issues/8184 [closed] 5 💬
5 weeks ago
➡️ fastlane supply fails with error "NoMethodError: [!] undefined method `map' for nil:NilClass"
https://github.com/fastlane/fastlane/issues/10033 [closed] 14 💬
6 weeks ago
and 105 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60each%27%20for%20nil&type=Issues&utf8=✓
🔗 You can ⌘ + double-click on links to open them directly in your browser.
bundler: failed to load command: fastlane (/usr/local/bin/fastlane)
NoMethodError: [!] undefined method `each' for nil:NilClass
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/gym/lib/gym/error_handler.rb:144:in `print_full_log_path'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/gym/lib/gym/error_handler.rb:56:in `handle_build_error'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/gym/lib/gym/runner.rb:90:in `block in build_app'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane_core/lib/fastlane_core/command_executor.rb:88:in `execute'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/gym/lib/gym/runner.rb:86:in `build_app'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/gym/lib/gym/runner.rb:11:in `run'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/gym/lib/gym/manager.rb:14:in `work'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/actions/gym.rb:65:in `run'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:253:in `block (2 levels) in execute_action'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:231:in `block in execute_action'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:227:in `chdir'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:148:in `trigger_action_by_name'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'
Fastfile:36:in `block (2 levels) in parsing_binding'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/lane.rb:33:in `call'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/lane_manager.rb:54:in `cruise_lane'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/commands_generator.rb:104:in `block (2 levels) in run'
/usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:178:in `call'
/usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:153:in `run'
/usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.5/lib/commander/runner.rb:476:in `run_active_command'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:66:in `run!'
/usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.5/lib/commander/delegates.rb:15:in `run!'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/commands_generator.rb:303:in `run'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/fastlane/lib/fastlane/cli_tools_distributor.rb:66:in `take_off'
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.62.1/bin/fastlane:20:in `<top (required)>'
/usr/local/bin/fastlane:23:in `load'
/usr/local/bin/fastlane:23:in `<top (required)>'
The latest bundler is 1.16.0.pre.3, but you are currently running 1.15.1.
To update, run `gem install bundler --pre`
ENVIRONMENT:
[03:20:01]: fastlane detected a Gemfile in the current directory
[03:20:01]: however it seems like you don't use `bundle exec`
[03:20:01]: to launch fastlane faster, please use
[03:20:01]:
[03:20:01]: $ bundle exec fastlane env
[03:20:01]:
[03:20:01]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[03:20:04]: Generating fastlane environment output, this might take a few seconds...
<details><summary>✅ fastlane environment ✅</summary>
### Stack
| Key | Value |
| --------------------------- | ------------------------------------------- |
| OS | 10.12.5 |
| Ruby | 2.4.1 |
| Bundler? | false |
| Git | git version 2.13.1 |
| Installation Source | /usr/local/bin/fastlane |
| Host | Mac OS X 10.12.5 (16F73) |
| Ruby Lib Dir | /usr/local/Cellar/ruby/2.4.1_1/lib |
| OpenSSL Version | OpenSSL 1.0.2k 26 Jan 2017 |
| Is contained | false |
| Is homebrew | false |
| Is installed via Fabric.app | false |
| Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version | 8.3.3 |
### System Locale
| Variable | Value | |
| -------- | ----------- | - |
| LANG | en_US.UTF-8 | ✅ |
| LC_ALL | en_US.UTF-8 | ✅ |
| LANGUAGE | en_US.UTF-8 | ✅ |
### fastlane files:
<details><summary>`./fastlane/Fastfile`</summary>
```ruby
# Customise this file, documentation can be found here:
# https://docs.fastlane.tools/actions/
# 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.62.1"
default_platform :ios
platform :ios do
before_all do
ENV["SLACK_URL"] = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
ENV["FASTLANE_DONT_STORE_PASSWORD"] = "1"
cocoapods
# carthage
end
desc "Runs all the tests"
lane :test do
scan
end
desc "Submit a new Production Build of Scoot to Crashlytics"
desc "This will also make sure the profile is up to date"
lane :scootBeta do
cert(username: "eytan@yellzz.com")
sigh
gym(
workspace: "YellzzIos.xcworkspace",
configuration: "Production",
scheme: "Scoot",
silent: true,
clean: true,
output_name: "scoot-chat.ipa",
sdk: "10.3")
crashlytics(
crashlytics_path:"./Pods/Crashlytics/Crashlytics.framework",
api_token: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
build_secret:"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
ipa_path: "./scoot-chat.ipa",
emails: "eytan@yellzz.com,davidw@yellzz.com")
end
desc "Deploy a new version to the App Store"
lane :release do
# match(type: "appstore")
# snapshot
gym(scheme: "Scoot") # Build your app - more options available
deliver(force: true)
# frameit
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 Beta 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/fastlane#metrics
```
</details>
<details><summary>`./fastlane/Appfile`</summary>
```ruby
app_identifier "com.yellzz.scootapp" # The bundle identifier of your app
apple_id "eytan@yellzz.com" # Your Apple email address
team_id "XXXXXXXXX" # 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
```
</details>
### fastlane gems
| Gem | Version | Update-Status |
| -------- | ------- | ------------- |
| fastlane | 2.62.1 | ✅ Up-To-Date |
### Loaded fastlane plugins:
**No plugins Loaded**
<details><summary><b>Loaded gems</b></summary>
| Gem | Version |
| --------------------- | ------------ |
| did_you_mean | 1.1.0 |
| slack-notifier | 1.5.1 |
| rouge | 2.0.7 |
| xcpretty | 0.2.8 |
| terminal-notifier | 1.8.0 |
| CFPropertyList | 2.3.5 |
| multipart-post | 2.0.0 |
| word_wrap | 1.0.0 |
| public_suffix | 2.0.5 |
| babosa | 1.0.2 |
| colored | 1.2 |
| highline | 1.7.8 |
| commander-fastlane | 4.4.5 |
| unf_ext | 0.0.7.4 |
| unf | 0.1.4 |
| domain_name | 0.5.20170404 |
| http-cookie | 1.0.3 |
| faraday-cookie_jar | 0.0.6 |
| fastimage | 2.1.0 |
| gh_inspector | 1.0.3 |
| mini_magick | 4.5.1 |
| multi_xml | 0.6.0 |
| rubyzip | 1.2.1 |
| security | 0.1.3 |
| dotenv | 2.2.1 |
| bundler | 1.15.1 |
| declarative | 0.0.10 |
| declarative-option | 0.1.0 |
| representable | 3.0.4 |
| mime-types-data | 3.2016.0521 |
| mime-types | 3.1 |
| httpclient | 2.8.3 |
| google-api-client | 0.13.6 |
| json | 2.1.0 |
| excon | 0.59.0 |
| openssl | 2.0.3 |
| plist | 3.3.0 |
| tty-screen | 0.5.1 |
| faraday | 0.13.1 |
| faraday_middleware | 0.12.2 |
| little-plugger | 1.1.4 |
| logging | 2.2.2 |
| jwt | 1.5.6 |
| os | 0.9.6 |
| googleauth | 0.6.1 |
| signet | 0.8.1 |
| claide | 1.0.2 |
| colored2 | 3.1.2 |
| nanaimo | 0.2.3 |
| xcodeproj | 1.5.3 |
| io-console | 0.4.6 |
| unicode-display_width | 1.3.0 |
| terminal-table | 1.8.0 |
</details>
*generated on:* **2017-10-31**
</details>
[03:20:05]: Take notice that this output may contain sensitive information, or simply information that you don't want to make public.
[03:20:05]: Open https://github.com/fastlane/fastlane/issues/new to submit a new issue ✅
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment