I have a question, when you create an Amper projec...
# amper
e
I have a question, when you create an Amper project with the standalone Amper from the command line to create a compose Multiplatform project, it only provides a way to run it on android or JVM but not for iOS. I’ve tried it on both fleet and idea but to no avail. The gutter icon only provides for the two options above. Is there a way to run it on iOS or is it not yet supported.
s
Are you on macOS?
s
Same problem with multiplatform cli - I can run with
./amper run --module macos-cli
but how to run it from IntelliJ with Amper plugin?
e
Yes, I’m on Mac OS,
Unless their is extra configuration or edits that has to be done that is not documented,
Below Is an image of the default code that is given. which looks android specific judging by the imports yet it's in the shared folder. and whenever I try re writing the code their, the code suggestions are for the android specific import for example @Composable
j
@Egwau Godfrey The
androidx
imports are probably a red herring. A good part of Compose Multiplatform (real common code) still has this package, so don't worry about it, it's expected.
Regarding iOS support, we technically haven't officially announced any support for it yet, and it is still being actively developed. That said, if you're on a mac, it should work at least in the CLI in Amper 0.5.0. I just tried
./amper run -m ios-app
on the
compose-multiplatform
template project, and it started fine. Could you please confirm that this works for you?
Note that you might need some preliminary xcode setup, though.
xcodebuild -checkFirstLaunchStatus
should be empty, otherwise run
xcodebuild -runFirstLaunch
. And you can also make sure you have the iOS platform installed with
xcodebuild -downloadPlatform iOS
for example. Probably KDoctor should help here
e
It worked out, Thanks
🆒 1