Skip to content

Commit

Permalink
Fix uploading dsyms to crashlytics
Browse files Browse the repository at this point in the history
- Download `upload_symbols` binary manually
  • Loading branch information
mathebox committed Feb 1, 2022
1 parent 7f2e92c commit c762eed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ fastlane/screenshots
fastlane/test_output
# Appfile with sensitive values
fastlane/Appfile
# Custome scripts
fastlane/scripts

# Localization exports
fastlane/localization-export
Expand Down
7 changes: 6 additions & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ pod 'R.swift', '~> 5.0'
pod 'SwiftLint', '~> 0.22'


# Because `post_install` is not called if no targets are specified, we run the custom seyup in `pre_install`
pre_install do |installer|
# Because `post_install` is not called if no targets are specified, we run this in `pre_install`
Pod::UI.info "Installing BartyCrouch manually"
system("make installables -C ./Pods/BartyCrouch >> /dev/null")
system("cp -f /tmp/BartyCrouch.dst/usr/local/bin/bartycrouch ./Pods/BartyCrouch/bartycrouch")

Pod::UI.info "Downloading Crashlyics 'upload_symbols' to './fastlane/scripts/upload_symbols'"
system("mkdir -p ./fastlane/scripts")
system("curl -sL https://github.com/firebase/firebase-ios-sdk/raw/master/Crashlytics/upload-symbols -o ./fastlane/scripts/upload_symbols")
system("chmod +x ./fastlane/scripts/upload_symbols")
end
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ SPEC CHECKSUMS:
R.swift.Library: 0fc583cb55a99e28901299cc451614cad1161962
SwiftLint: 99f82d07b837b942dd563c668de129a03fc3fb52

PODFILE CHECKSUM: 1d91ab9a37262175c8c37944c2ae103334d299f2
PODFILE CHECKSUM: fb9f4465931b7e08eb0b99f6becf9dba5dc0473b

COCOAPODS: 1.11.2
1 change: 1 addition & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ platform :ios do
)
upload_symbols_to_crashlytics(
gsp_path: "iOS/Branding/#{flavor}/GoogleService-Info-Release.plist",
binary_path: "#{fastlane_dir}/scripts/upload_symbols",
)
clean_build_artifacts
end
Expand Down

0 comments on commit c762eed

Please sign in to comment.