Upgrade to Pro — share decks privately, control downloads, hide ads and more …

dSYMのアップロードで
SPMを活用する/use_spm_with_upload_dsyms

fromkk
June 03, 2021

 dSYMのアップロードで
SPMを活用する/use_spm_with_upload_dsyms

Bitrise User Group Japan #5 にて登壇してきた内容の資料です。

fromkk

June 03, 2021
Tweet

More Decks by fromkk

Other Decks in Programming

Transcript

  1. struct Profile { let name = "Kazuya Ueoka" let company

    = " note inc." let twitter = " @fromkk" let github = " fromkk" let qiita = " fromkk" let note = " fromkk" } 2
  2. ύοέʔδͷґଘؔ܎͚ͩղܾ͍ͨ͠ • xcodebuild -resolvePackageDependencies -project $BITRISE_PROJECT_PATH -scheme $BITRISE_SCHEME -configuration Debug

    -clonedSourcePackagesDirPath $PACKAGES_PATH 
 ্هΛSPMܦ༝Ͱར༻͍ͨ͠ίϚϯυΛୟ͘લʹ࣮ߦ͓ͯ͘͠ ʢxcworkspaceΛར༻͍ͯ͠Δ৔߹͸ -project Λ -workspace ʹมߋʣ 10
  3. ࠷ऴతͳεΫϦϓτ 11 bundle install export FASTLANE_USER=$APPLE_ID export FASTLANE_PASSWORD=$APPLE_PW export SPACESHIP_2FA_SMS_DEFAULT_PHONE_NUMBER=$APP_PHONE_NUMBER

    export DOWNLOAD_DSYMS_TEAM_ID=$APPLE_TEAM_ID fastlane udpate_session DSYMS_PATH=$(pwd)/dsyms/ mkdir $DSYMS_PATH fastlane dsyms dest:$DSYMS_PATH envman add --key DSYMS_PATH --value $DSYMS_PATH xcodebuild -resolvePackageDependencies -project $BITRISE_PROJECT_PATH -scheme $BITRISE_SCHEME -configuration Debug -clonedSourcePackagesDirPath $PACKAGES_PATH +
  4. Ωϟογϡͷ׆༻ • xcodebuild -resolvePackageDependencies Λୟ͍ͨޙͰ Bitrise.io Cache:Push εςοϓΛ௥Ճ 
 


    • Cache pathsΛԼهͷΑ͏ʹมߋ 
 $PACKAGES_PATH -> $BITRISE_PROJECT_PATH/project.xcworkspace/ xcshareddata/swiftpm/Package.resolved 15