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.6k
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
890
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.4k
Bitriseのリモートアクセス機能 #bitrise_meetup/remote_access_of_bitrise
fromkk
1
520
note社でのMagic Pod活用事例 #af_iosdc/magicpod_with_note
fromkk
2
10k
iOSには無いmacOS独自機能をCatalystで実装する #iosdc #d/make_macos_apps_with_catalyst
fromkk
9
2k
Catalystに対応したアプリをリリースするまでのリジェクト集 #iosdc #a #lt/iosdc_2020_lt
fromkk
2
990
Other Decks in Programming
See All in Programming
詳細解説! ArrayListの仕組みと実装
yujisoftware
0
560
ECS Service Connectのこれまでのアップデートと今後のRoadmapを見てみる
tkikuc
2
240
讓數據說話:用 Python、Prometheus 和 Grafana 講故事
eddie
0
390
【Kaigi on Rails 2024】YOUTRUST スポンサーLT
krpk1900
1
320
WebフロントエンドにおけるGraphQL(あるいはバックエンドのAPI)との向き合い方 / #241106_plk_frontend
izumin5210
4
1.3k
Tauriでネイティブアプリを作りたい
tsucchinoko
0
360
Jakarta EE meets AI
ivargrimstad
0
290
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
200
「今のプロジェクトいろいろ大変なんですよ、app/services とかもあって……」/After Kaigi on Rails 2024 LT Night
junk0612
4
2.1k
CSC509 Lecture 11
javiergs
PRO
0
180
From Subtype Polymorphism To Typeclass-based Ad hoc Polymorphism- An Example
philipschwarz
PRO
0
200
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
0
230
Featured
See All Featured
Happy Clients
brianwarren
98
6.7k
Why Our Code Smells
bkeepers
PRO
334
57k
Typedesign – Prime Four
hannesfritz
40
2.4k
Gamification - CAS2011
davidbonilla
80
5k
Being A Developer After 40
akosma
86
590k
[RailsConf 2023] Rails as a piece of cake
palkan
51
4.9k
YesSQL, Process and Tooling at Scale
rocio
168
14k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Raft: Consensus for Rubyists
vanstee
136
6.6k
How STYLIGHT went responsive
nonsquared
95
5.2k
For a Future-Friendly Web
brad_frost
175
9.4k
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