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~

treastrain / Tanaka Ryoga

March 20, 2021
Tweet

More Decks by treastrain / Tanaka Ryoga

Other Decks in Programming

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. 「Command

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

    端末(実機)向けにビルドする 24
  10. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 「:shared:linkDebugFrameworkIosX64」って

    どこで変えるの? • 実機はそもそも X86 じゃないし… 33
  11. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. 知らないうちに

    「:shared:linkDebugFrameworkIosArm64」になってた 35
  12. Copyright © 2021 treastrain / Tanaka Ryoga All rights reserved. どうすれば

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