I am trying to get Fastlane to automate downloading the Bitcode dsyms from iTunes Connect and uploading them to our Fabric install. I can't seem to figure out what it wants though.
Specifically, I don't understand why it wants binary_path
? I just want to upload the dSym files that we fetched from iTunes Connect.
卤 fastlane refresh_dsyms
[09:31:59]: -------------------------------------------------
[09:31:59]: --- Step: Verifying required fastlane version ---
[09:31:59]: -------------------------------------------------
[09:31:59]: fastlane version valid
[09:31:59]: ------------------------------
[09:31:59]: --- Step: default_platform ---
[09:31:59]: ------------------------------
[09:31:59]: Driving the lane 'ios refresh_dsyms' 馃殌
[09:31:59]: ----------------------------
[09:31:59]: --- Step: download_dsyms ---
[09:31:59]: ----------------------------
[09:31:59]: Login to iTunes Connect (MY_EMAIL)
[09:32:03]: Login successful
[09:32:03]: Looking for dSYM files for com.schooldatebooks.EventLink
[09:32:05]: 馃攽 Successfully downloaded dSYM file for 2.0 - 12 to 'com.schooldatebooks.EventLink-2.0-12.dSYM.zip'
[09:32:06]: No dSYM URL for 13 (2.0)
[09:32:06]: /Users/justin/Development/EventLink-iOS/com.schooldatebooks.EventLink-2.0-12.dSYM.zip
[09:32:06]: -------------------------------------------
[09:32:06]: --- Step: upload_symbols_to_crashlytics ---
[09:32:06]: -------------------------------------------
[09:32:06]: Variable Dump:
[09:32:06]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios refresh_dsyms", :DSYM_PATHS=>["/Users/justin/Development/EventLink-iOS/com.schooldatebooks.EventLink-2.0-12.dSYM.zip"]}
[09:32:06]: Please provide a path to the binary using binary_path:
+------+-------------------------------------+-------------+
| fastlane summary |
+------+-------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+-------------------------------------+-------------+
| 1 | Verifying required fastlane version | 0 |
| 2 | default_platform | 0 |
| 3 | download_dsyms | 6 |
| 4 | upload_symbols_to_crashlytics | 0 |
+------+-------------------------------------+-------------+
[09:32:06]: fastlane finished with errors
[!] Please provide a path to the binary using binary_path:
Please copy the complete content of your Fastfile
and any other configuration files you use below:
Fastfile:
desc "Get Bitcode enabled dSyms from iTunes Connect and upload them to Crashlytics"
lane :refresh_dsyms do
download_dsyms(
username: ENV['FASTLANE_USERNAME'],
team_id: ENV['APPLE_TEAM_ID'],
team_name: ENV['APPLE_TEAM_NAME']
)
dsyms = lane_context[SharedValues::DSYM_PATHS]
dsyms.each do |dsym|
puts dsym
upload_symbols_to_crashlytics(
dsym_path: dsym
)
end
clean_build_artifacts
end
fastlane version (run fastlane -v
): 1.83.0
Do you use bundler to execute fastlane (i.e. bundle exec fastlane
)? No
Do you use a Ruby environment manager (e.g. chruby
, rbenv
, rvm
)? No
@justin The upload_symbols_to_crashlytics
action relies on the Fabric mac app or submit binary being installed on the machine.
https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb#L78 By default, it looks in a few places for it, but otherwise you'll need to provide the binary path. 馃憤
OOoh. That binary. I thought it wanted the app binary. Too early I suppose. Cheers.
Updated the documentation with https://github.com/fastlane/fastlane/pull/4442, thanks @justin 馃憤
Most helpful comment
OOoh. That binary. I thought it wanted the app binary. Too early I suppose. Cheers.