Hello iOS Compose enthusiasts! I created new Kotli...
# compose-ios
m
Hello iOS Compose enthusiasts! I created new Kotlin Multiplatform Mobile project and I’m trying to run Multiplatform Compose UI. I’m using similar approach as Touchlab for Droidcon app and I had few issues that I managed to fix mostly from your previous questions and threads so 🙏 . Now I have one error I don’t know how to fix, so I hope someone could have some suggestions what should I try. So for starters
> Task :shared:linkReleaseFrameworkIosSimulatorArm64 FAILED
this task fails and after a bunch of warnings last thing in log before failiure is:
ld: symbol(s) not found for architecture arm64
. Did anyone had any similar issues? App build and run on Simulator completely fine before I added Compose (it used default SwiftUI example implementation). Other important info: Compose multiplatform version: 1.3.0-alpha01-dev824 I have M1 mac with BigSur OS 11.6.1 (20G224) And I added compiler args
-Xverify-compiler=false
and
-Xdisable-phases=VerifyBitcode
I saw somewhere that it is supported on Intel only (not 100% sure where and for what I saw that), does that mean that currently it is impossible to run Compose on Simulator on M1 MacBooks? 🤔
l
Can you give an example of a symbol that’s not found?
For what it’s worth, I run the M1 simulator for one of my side projects. The ios branch on this app currently works. https://github.com/LandryNorris/MultiFactor/tree/platform/add-ios-xcode
m
I guess that would be it
l
Make sure you add the freeCompilerArgs that link against CoreText, Foundation, and whatever the other one was.
Also, I believe you need to keep kotlin.native.cacheKind=none for now.
It’s all in the project I shared. Check the build.gradle of mobileapp and the gradle.properties.
m
Yeah I have kotlin.native.cacheKind=none I guess I’m missing freeCompilerArgs that link against CoreText, Foundation etc.
Thanks for fast replys and for sharing your project!
I did it, it works! 🙏 🦜