Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
dSYMのアップロードで SPMを活用する/use_spm_with_upload_dsyms
Search
fromkk
June 03, 2021
Programming
1
2.8k
dSYMのアップロードで SPMを活用する/use_spm_with_upload_dsyms
Bitrise User Group Japan #5 にて登壇してきた内容の資料です。
fromkk
June 03, 2021
Tweet
Share
More Decks by fromkk
See All by fromkk
note社の全員野球で品質向上活動について / note_qa_challenge #iOS_test_teatime
fromkk
3
1.8k
1年分のデータが見たいと言われてやったこと/yearly_data_with_note
fromkk
0
930
note iOSチームの自動化 ver.2021/automation_with_iOS_team_on_note_ver2021
fromkk
0
1.9k
Bitrise体験会説明資料/bitrise_explore
fromkk
1
1k
noteのiOSアプリで実装したアクセシビリティの全て #iosdc #a /a11y_with_iOS_App_on_note
fromkk
2
3.6k
Bitriseのリモートアクセス機能 #bitrise_meetup/remote_access_of_bitrise
fromkk
1
560
note社でのMagic Pod活用事例 #af_iosdc/magicpod_with_note
fromkk
2
11k
iOSには無いmacOS独自機能をCatalystで実装する #iosdc #d/make_macos_apps_with_catalyst
fromkk
9
2.1k
Catalystに対応したアプリをリリースするまでのリジェクト集 #iosdc #a #lt/iosdc_2020_lt
fromkk
2
1k
Other Decks in Programming
See All in Programming
List とは何か? / PHPerKaigi 2025
meihei3
0
560
SLI/SLOの設定を進めるその前に アラート品質の改善に取り組んだ話
tanden
2
730
SideKiqでジョブが二重起動した事象を深堀りしました
t_hatachi
0
240
マルチアカウント環境での、そこまでがんばらない RI/SP 運用設計
wa6sn
0
600
Kubernetesで実現できるPlatform Engineering の現在地
nwiizo
2
1.7k
Devin入門と最近のアップデートから見るDevinの進化 / Introduction to Devin and the Evolution of Devin as Seen in Recent Update
rkaga
7
3.8k
Let's Take a Peek at PHP Parser 5.x!
inouehi
0
100
コンテナでLambdaをデプロイするときに知っておきたかったこと
_takahash
0
150
生産性アップのためのAI個人活用
kunoyasu
0
650
The Evolution of Enterprise Java with Jakarta EE 11 and Beyond
ivargrimstad
0
980
ニックトレイン登壇資料
ryotakurokawa
0
140
JavaOne 2025: Advancing Java Profiling
jbachorik
1
320
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
522
39k
Making the Leap to Tech Lead
cromwellryan
133
9.2k
Site-Speed That Sticks
csswizardry
4
450
BBQ
matthewcrist
88
9.5k
The Pragmatic Product Professional
lauravandoore
33
6.5k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
8
700
Thoughts on Productivity
jonyablonski
69
4.5k
Building Your Own Lightsaber
phodgson
104
6.3k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
118
51k
Mobile First: as difficult as doing things right
swwweet
223
9.5k
Transcript
dSYMͷΞοϓϩʔυͰ SPMΛ׆༻͢Δ Bitrise User Group Japan #5 1
struct Profile { let name = "Kazuya Ueoka" let company
= " note inc." let twitter = " @fromkk" let github = " fromkk" let qiita = " fromkk" let note = " fromkk" } 2
ৼΓฦΓ 3
https://note.com/fromkk/n/n064299093064 4
ͪΐͬͱࡶͳ࣮͕͋Γ·ͨ͠😅 5
ࡶͳ࣮ • # TypeͰϥΠϒϥϦͷཧΛSwift Package Managerͷ Έʹ͍ͤͯͨ • Crashlyticsͷupload-symbolsίϚϯυΛୟͨ͘Ί͚ͩ ʹҰ࣌྇͗ͰCocoaPodsΛར༻
• ϥΠϒϥϦͷΩϟογϡແࢹ 6 use_frameworks! target 'Type' do pod 'FirebaseCrashlytics' end
͔ͤͬ͘ͳͷͰͪΌΜͱSPMΛ׆༻͍ͨ͠ 7
SPMΛclone͢ΔσΟϨΫτϦͷܾఆ 8
ύοέʔδΛclone͢ΔσΟϨΫτϦΛมߋ • ௨ৗXcodeͰSPMΛར༻͢Δͱclone͢Δύοέʔδ ~/Library/Developer/Xcode/DerivedData/ ${PRODUCT_NAME}-${HASH}/SourcePackages/ ҎԼʹࣗಈతʹஔ͞ΕΔ • खಈͰࢦఆ͍ͨ͠߹
xcodebuild ίϚϯυͷ -clonedSourcePackagesDirPath ΦϓγϣϯΛར༻͢Δ͜ͱͰ มߋՄೳ 9
ύοέʔδͷґଘ͚ؔͩղܾ͍ͨ͠ • xcodebuild -resolvePackageDependencies -project $BITRISE_PROJECT_PATH -scheme $BITRISE_SCHEME -configuration Debug
-clonedSourcePackagesDirPath $PACKAGES_PATH ্هΛSPMܦ༝Ͱར༻͍ͨ͠ίϚϯυΛୟ͘લʹ࣮ߦ͓ͯ͘͠ ʢxcworkspaceΛར༻͍ͯ͠Δ߹ -project Λ -workspace ʹมߋʣ 10
࠷ऴతͳεΫϦϓτ 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 +
upload-symbolsͷύεΛมߋ 12
ΩϟογϡΛ׆༻͍ͨ͠ 13
Ωϟογϡͷ׆༻ • xcodebuild -resolvePackageDependencies Λୟ͘લʹ Bitrise.io Cache:Pull εςοϓΛՃ 14
Ωϟογϡͷ׆༻ • xcodebuild -resolvePackageDependencies Λୟ͍ͨޙͰ Bitrise.io Cache:Push εςοϓΛՃ
• Cache pathsΛԼهͷΑ͏ʹมߋ $PACKAGES_PATH -> $BITRISE_PROJECT_PATH/project.xcworkspace/ xcshareddata/swiftpm/Package.resolved 15
࠷ऴ݁Ռ 16 εΫϦϓτͷલޙʹΩϟογϡΛՃ
·ͱΊ • લճΓ͍ͯͨ͠SPMͷ՝Λղܾ͢Δ͜ͱ͕Ͱ͖ͨ🎉 • SPMͰΩϟογϡΛར༻͢Δ͜ͱͰ࣮ߦ࣌ؒॖ⏰ • ͜ΕͰεοΩϦͱͨ͠ؾͰdSYMͷΞοϓϩʔυΛCIʹͤ ΒΕΔ👍 17
None