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

iOSパッケージマネージャー奮闘記

 iOSパッケージマネージャー奮闘記

Mobile Act ONLINE #3 の発表資料です。
https://mobileact.connpass.com/event/200515

Tomoki Kobayashi

February 19, 2021
Tweet

More Decks by Tomoki Kobayashi

Other Decks in Programming

Transcript

  1. $PQZSJHIU˜TUNO JOD"MMSJHIUTSFTFSWFE ࣗݾ঺հ 2 Tomoki Kobayashi Twitter/GitHub @temoki ϞόΠϧΞϓϦΤϯδχΞ J04

    "OESPJE 'MVUUFS 'JSFCBTF גࣜձࣾελϝϯ TUNO JOD  56/"(ΤϯήʔδϝϯτܦӦϓϥοτϑΥʔϜ '"/54αϒεΫܕΦϯϥΠϯϑΝϯαϩϯ
  2. $PQZSJHIU˜TUNO JOD"MMSJHIUTSFTFSWFE $BSUIBHFͱͷಆ͍Τϥʔͷ֓ཁ 10 the same architectures (arm64) and can't

    be in the same fat output file ΤϥʔൃੜՕॴ xcrun lipo -create w MJQP͸ҟͳΔΞʔΩςΫνϟͷෳ਺ͷόΠφϦΛ݁߹ͯ͠ 
 6OJWFSTBMόΠφϦΛ࡞Δπʔϧʢ9DPEFಉࠝʣ w $BSUIBHF͸J04σόΠεͱJ04γϛϡϨʔλ޲͚ͷ'SBNFXPSLΛ 
 ͦΕͧΕϏϧυ͔ͯ͠ΒMJQPʹΑΓ6OJWFSTBM'SBNFXPSLΛ࡞੒͢Δ Τϥʔϝοηʔδ
  3. $PQZSJHIU˜TUNO JOD"MMSJHIUTSFTFSWFE $BSUIBHFͱͷಆ͍9DPEF 12 iOS Simulator Mac (Intel + M1)

    iOS Device arm64 Universal x86_64 + arm64 lipo -create the same architectures (arm64) and can't be in the same fat output file
  4. $PQZSJHIU˜TUNO JOD"MMSJHIUTSFTFSWFE $BSUIBHFͱͷಆ͍4XJGU1.΁Ҡߦ͠Α͏ʂ 16 w $BSUIBHFͷࠜຊతͳ໰୊͕ͳ͔ͳ͔ղফ͞Εͳ͍ 
 ϫʔΫΞϥ΢ϯυͰ͸..BDͰಈ࡞͠ͳ͍  w

    9DPEFͰ4XJGU1.͕౷߹ɺ 
 ґଘύοέʔδͷ4XJGU1.αϙʔτ΋ਐΜͰ͖ͨ w 'JSFCBTF4%,΋೥݄͔Β4XJGU1.αϙʔτΛ Ќఏڙ։࢝ʂ $BSUIBHF͸&YQFSJNFOUBMͳҐஔ෇͚ Αͬ͠Όɺ͜ΕΛػʹ4XJGU1.ʹҠߦͨ͠Ζʂ
  5. $PQZSJHIU˜TUNO JOD"MMSJHIUTSFTFSWFE 4XJGU1.Ϗϧυ࣌ؒΛ཈͑Δʹ͸ʜ 23 w 9DPEF͔ΒϏϧυࡁόΠφϦΛఏڙՄೳʹͳͬͨ 
 ιʔείʔυ͕ඇެ։Ͱ΋഑෍Մೳͱ͢Δ͜ͱ͕໨త  w

    'JSFCBTF"OBMZUJDT͸͜ΕͰ഑෍͞Ε͍ͯΔ w όΠφϦͰͷఏڙ͕౰ͨΓલʹͳΔ೔͕དྷͳ͍͔ͳʜ 4XJGU1.΁ͷҠߦ͸Ұ୴அ೦͢Δ͜ͱʹ
  6. $PQZSJHIU˜TUNO JOD"MMSJHIUTSFTFSWFE ࢒Δ՝୊ 29 w 'JSFCBTF4%,͸$BSUIBHFͩͱैདྷͷ'SBNFXPSLܗࣜͰ 
 ϏϧυࡁόΠφϦ͕ఏڙ͞ΕΔͷͰ..BD্γϛϡϨʔλ Ͱಈ࡞͠ͳ͍ 


    $BSUIBHF͕9$'SBNFXPSLʹରԠ͠ͳ͍͔Βͱ͍͏ཧ༝  w $BSUIBHF޲͚ͷ'JSFCBTF"OBMZUJDT͕Ҏ߱ͷ 
 όʔδϣϯఏڙ͞Εͳ͍ʜ https://github.com/firebase/firebase-ios-sdk/blob/master/AppleSilicon.md#carthage