Hi! I'm trying to do the compose multiplaform star...
# multiplatform
b
Hi! I'm trying to do the compose multiplaform starter thing, just to learn stuff, and I can't get my iphone app to fire up ๐Ÿ˜ž All I get from the IDE is this error, I do have an iphone simulator up, so it got part of the way there. Any advice?
I do have xcode 16+ installed, I was able to fire up the simulator. I did launch Xcode once to make sure that runs.
I am able to build the binaries:
Copy code
Calculating task graph as no cached configuration is available for tasks: iosArm64Binaries
Type-safe project accessors is an incubating feature.
Downloading native dependencies (LLVM, sysroot etc). This is a one-time action performed only on the first run of the compiler.
Downloading dependency <https://download.jetbrains.com/kotlin/native/resources/llvm/16.0.0-aarch64-macos/llvm-16.0.0-aarch64-macos-essentials-65.tar.gz> to /Users/me/.konan/dependencies/cache/llvm-16.0.0-aarch64-macos-essentials-65.tar.gz
Done.
Extracting dependency: /Users/TKA14MZ/.konan/dependencies/cache/llvm-16.0.0-aarch64-macos-essentials-65.tar.gz into /Users/me/.konan/dependencies
Downloading dependency <https://download.jetbrains.com/kotlin/native/libffi-3.3-1-macos-arm64.tar.gz> to /Users/me/.konan/dependencies/cache/libffi-3.3-1-macos-arm64.tar.gz
Done.
Extracting dependency: /Users/me/.konan/dependencies/cache/libffi-3.3-1-macos-arm64.tar.gz into /Users/me/.konan/dependencies

> Task :composeApp:linkDebugFrameworkIosArm64
w: Cannot infer a bundle ID from packages of source files and exported dependencies, use the bundle name instead: ComposeApp. Please specify the bundle ID explicitly using the -Xbinary=bundleId=<id> compiler flag.

> Task :composeApp:linkReleaseFrameworkIosArm64
w: Cannot infer a bundle ID from packages of source files and exported dependencies, use the bundle name instead: ComposeApp. Please specify the bundle ID explicitly using the -Xbinary=bundleId=<id> compiler flag.

BUILD SUCCESSFUL in 3m 6s
9 actionable tasks: 4 executed, 5 up-to-date
Configuration cache entry stored....
it's something to do with the running of it
d
Hmmm. Android Studio or IntelliJ? Also, how are you attempting to run the app? From the terminal? Or a run configuration?
b
Android Studio, from the run configuration just like the tutorial shows ๐Ÿ™‚ I wasn't sure how to run it from the terminal, tbh, I haven't gotten that far in any tutorials, and no gradle task jumped out at me yet.
d
Be sure that you are linking the built iOS framework in the Build Phases. Are you able to run the app via Xcode? I started a project from scratch and basically got the same thing you did when I tried to run the app from Xcode. I added the framework (called ComposeApp.framework here) and then I was able to run the app from Xcode. Still having an issue with running from AS. I'll play with it some more.
image.png
b
I don't know how to do anything on iOS, I only have a macbook through work, so this is baby's first iOS app, and I know next to nothing about xcode ๐Ÿ™‚ If I open xcode, will it be reasonably easy to figure out? And I'm gonna head home so no more Apple Computer debugging ๐Ÿ˜ž
d
Heh. It's relatively straightforward.
b
I opened the iosApp folder in xcode, and it didn't complain too much. I hit the Go button on it, and there's a spinning iphone simulator thingy
oh it worked!
well kinda
the app showed up, but it's empty
AH, it just took a while and it cause the iphone to restart?
this is a rollercoaster
welp, it can wait until tomorrow anyway. I got something to happen, so that's nice
well that was quite strange, but it did work eventually
good enough for me at the moment
Thanks for the advice
๐Ÿ‘๐Ÿป 1
c
try to install newest kotlin multiplatform plugin beta. it includes kdoctor which tries to find issues with your setup. a blog post went out today (the 19th) about it.
๐Ÿ‘€ 1
also ask in #C0346LWVBJ4 maybe for some more ios specific folks