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

Kotlin Multiplatform Mobile (KMM) を使った App を Apple M1 Mac で開発しようとしたけど iOS App 向けビルドでコケた / The app build (for iOS) failed that using Kotlin Multiplatform Mobile (KMM) on an Apple M1 Mac

Kotlin Multiplatform Mobile (KMM) を使った App を Apple M1 Mac で開発しようとしたけど iOS App 向けビルドでコケた / The app build (for iOS) failed that using Kotlin Multiplatform Mobile (KMM) on an Apple M1 Mac

Kotlin Multiplatform Mobile (KMM) を使った App を Apple M1 Mac で開発しようとしたけど iOS App 向けビルドでコケた
@treastrain

NEW DEBUG!! #3.0 ~テストが通らないなら消せばいいじゃない~ @ CASPUR 2021/03/20 22:00~

D4b671ba3e441fa2aad85d7508ab67a2?s=128

treastrain / Tanaka Ryoga

March 20, 2021
Tweet

Transcript

  1. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. Kotlin

    Multiplatform Mobile (KMM) を使った App を Apple M1 Mac で開発しようとしたけど iOS App 向けビルドでコケた @treastrain NEW DEBUG!! #3.0 ~テストが通らないなら消せばいいじゃない ~ @ CASPUR March 20, 2021
  2. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 2

    自己紹介 @treastrain / Tanaka Ryoga https://treastrain.jp 高専卒 → 大学学部4年 → 21新卒予定 Swift (iOS, watchOS), Core NFC 2019年9月22日 iOS・watchOS App 「Japan NFC Reader」リリース
  3. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 3

    自己紹介 所有 Mac の変遷 • February 2014 - November 2020 15インチMacBook Pro (Retina Late 2013) ◦ Intel Core i7-4960HQ (Crystal Well) • November 2020 - 13インチMacBook Pro (M1、2020) ◦ Apple M1
  4. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 4

    自己紹介 プログラミング歴 • Swift 7年目 • Kotlin 2秒
  5. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. •

    Unity • Xamarin • React Native • Flutter • Kotlin Multiplatform Mobile (KMM) ※発表順 モバイル向けに使える クロスプラットフォーム開発 5
  6. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. Kotlin

    for Cross-Platform Mobile Development | Kotlin Multiplatform Mobile https://kotlinlang.org/lp/mobile/ 6
  7. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. Kotlin

    Multiplatform Mobile (KMM) • iOS と Android の両方の App でビジネスロジックを 共有できる Kotlin for Cross-Platform Mobile Development | Kotlin Multiplatform Mobile https://kotlinlang.org/lp/mobile/ 7
  8. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. KMM

    の準備をする 8
  9. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 9

  10. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 10

  11. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 11

  12. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 12

  13. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 13

  14. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 新規

    KMM プロジェクトをつくる 14
  15. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 15

  16. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 16

  17. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 17

  18. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 18

  19. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. iOS

    Simulator 向けにビルドする 19
  20. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 20

  21. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 21

  22. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 22

  23. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 「Command

    line invocation」って どこで変えるの? • xcodebuild の arch に x86_64 が当たっているのがダメそう…? • でも「Command line invocation」の変え方が分からない… 23
  24. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. iOS

    端末(実機)向けにビルドする 24
  25. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 25

  26. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. Xcode

    で署名する 26
  27. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 27

  28. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 28

  29. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 29

  30. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 30

  31. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 31

  32. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 32

  33. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 「:shared:linkDebugFrameworkIosX64」って

    どこで変えるの? • 実機はそもそも X86 じゃないし… 33
  34. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 2日後…

    34
  35. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 知らないうちに

    「:shared:linkDebugFrameworkIosArm64」になってた 35
  36. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. Android

    向けにはビルドできた 36
  37. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. どうすれば

    Apple M1 でも iOS 向けにビルドできるようになるのか • Android Studio の Apple シリコン対応待ってます • Java の SDK…? • やっぱりまだまだ Intel がいいのかな…… 37