-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method fetch
for ni:NilClass
#3
Comments
Can you update spaceship and try again? |
Hello Felix. I did try to update Spaceship but still the same error. |
Don't install |
Yes I uninstalled Just in cas here's my ✅ fastlane environment ✅Stack
System Locale
fastlane files:No Fastfile found No Appfile found fastlane gems
Loaded fastlane plugins:No plugins Loaded Loaded gems
generated on: 2017-06-08 |
Hello same issue on work computer : ✅ fastlane environment ✅Stack
System Locale
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`
require 'time'
require 'commander'
require 'pathname'
# 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.17.0"
default_platform :ios
# Fastfile actions accept additional configuration, but
# don't worry, fastlane will prompt you for required
# info which you can add here later
platform :ios do
desc "Always executed before a lane"
before_all do
# Ensure that Git status is clean
# ensure_git_status_clean
# # Increment build number
# increment_build_number
# # Slack webhook url
# ENV["SLACK_URL"] = "https://hooks.slack.com/services/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"
# # Get version number
# Actions.lane_context[SharedValues::VERSION_NUMBER] = get_version_number
# # Get build number
# Actions.lane_context[SharedValues::BUILD_NUMBER] = get_build_number
end
desc "AppStore release lane"
lane :release do
# Ensure Git branch is "develop"
ensure_git_branch(branch: "master")
# Slack notification for the beginning of the build
slack(
payload: {
":rocket: FERRING AppStore Distribution - Upload in progress..." => "Rekovelle - V" + Actions.lane_context[SharedValues::VERSION_NUMBER] + " - Build " + Actions.lane_context[SharedValues::BUILD_NUMBER],
":rocket: Build Date" => Time.new.to_s
},
default_payloads: [],
attachment_properties: {
# AppStore icon
thumb_url: "https://bytebucket.org/neospirit/helpers/raw/dd68282431ae40a4310aa9e6e872d93dc412abea/Resources/Fastlane/ServicesIcons/appstore.png?token=a9ee198d1729574c14c2f29c02b19528bdd4fa2c"
}
)
# Gym : build the app with the given scheme, configuration and export method
gym(clean: true, scheme: 'Rekovelle', export_method: 'app-store', configuration: "Release", include_bitcode: true)
# Send to iTunes Connect
deliver
# Send a notification when a build is done processing in iTunes Connect"
sh("watchbuild -a com.ferring.rekovelle -u [email protected]")
end
desc "AppStore release lane"
lane :metadata do
# Send metadata to iTunes Connect
deliver(
skip_screenshots: true,
skip_binary_upload: true
)
end
# This block is called, only if the executed lane was successful
after_all do |lane|
# AppStore
# url = "https://bytebucket.org/neospirit/helpers/raw/dd68282431ae40a4310aa9e6e872d93dc412abea/Resources/Fastlane/ServicesIcons/appstore.png?token=a9ee198d1729574c14c2f29c02b19528bdd4fa2c"
# tag = "V" + Actions.lane_context[SharedValues::VERSION_NUMBER] + "-" + Actions.lane_context[SharedValues::BUILD_NUMBER] + "-APPSTORE"
# # Slack notification to show the result of the build
# slack(
# default_payloads: [:lane, :test_result],
# attachment_properties: {
# # Thumb icon
# thumb_url: url
# }
# )
# Add the tag to the last commit of the build
=begin add_git_tag(
tag: tag
)
=end
# macOS notification when process completed
url = "https://apptitude.ch/web-startup-challenge/images/logo_apptitude.png"
notification(title: "Rekovelle", subtitle: "#{lane_context[SharedValues::LANE_NAME]} finished", message: "Ready to upload...", sound: "Glass", app_icon: url)
rocket
clean_build_artifacts
end
# This block is called when an error occured
error do |lane, exception|
# AppStore
# url = "https://bytebucket.org/neospirit/helpers/raw/dd68282431ae40a4310aa9e6e872d93dc412abea/Resources/Fastlane/ServicesIcons/appstoreFailed.png?token=82d29306ba1691a6e0c432570aec404b04c712c9"
# # Slack notification to show the result of the build
# slack(
# message: exception.message,
# default_payloads: [:lane, :test_result],
# success: false,
# attachment_properties: {
# # Thumb icon
# thumb_url: url
# }
# )
# clean_build_artifacts
end
desc "Send a notification when a build is done processing in iTunes Connect"
lane :watch do
watchIdentifierPrompt = prompt(
text: "Bundle identifier (e.g. ch.apptitude.myApp) ? "
)
watchEmailPrompt = prompt(
text: "Apple ID ? "
)
sh("watchbuild -a " + watchIdentifierPrompt + " -u " + watchEmailPrompt)
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.ferring.rekovelle" # The bundle identifier of your app
apple_id "com.ferring.rekovelle" # Your Apple email address
team_id "[[DEV_PORTAL_TEAM_ID]]" # 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
Loaded fastlane plugins:No plugins Loaded Loaded gems
generated on: 2017-06-27 |
Suddenly I get this error too. Did not change anything to my environment. It always worked. |
@peterdk please share the complete output + stack trace |
Output:
How do I get a stacktrace? Using |
Hi,
I got an error when running Watchbuild since some days.
I modified the info but the error message should be explicit.
$ watchbuild -a com.mycompany.myapp -u [email protected]
+------------------+------------------------------+
| Summary for WatchBuild 0.2.0 |
+------------------+------------------------------+
| app_identifier | com.mycompany.myapp |
| username | [email protected] |
| sample_only_once | false |
+------------------+------------------------------+
[16:51:24]: Starting login with user '[email protected]'
[16:51:25]: Successfully logged in
[16:51:28]: undefined method
fetch' for nil:NilClass [16:51:28]: Something failed... trying again to recover [16:51:59]: undefined method
fetch' for nil:NilClass[16:51:59]: Something failed... trying again to recover
....
The text was updated successfully, but these errors were encountered: