Technical blog post about Compose UI on iOS with the Droidcon NYC app: <https://twitter.com/kpgallig...
k
Technical blog post about Compose UI on iOS with the Droidcon NYC app: https://twitter.com/kpgalligan/status/1571865919709650945?s=20&amp;t=1j_6q0z3cJyJmFbV5czm4Q
🎉 9
K 1
❤️ 5
👌 11
a
Thanks for sharing this, by any chance, do you have any specific steps to compile/run the project on Arm64 simulator? 🙏🏻
k
I do not. Possibly @Tadeas Kriz?
(My main machine is still an Intel 😞 )
t
There was one library that didn't have the arm64 simulator target published yet. You can either run it on an iOS device (it compiles on arm64 machine), or switch the simulator to run in Rosetta mode. I'll check if the library has the target published or not and let you know 🙂
a
or switch the simulator to run in Rosetta mode.
hmmm, gonna try, thanks 🙂 btw: I left a comment in this issue, could be related
t
Before you do that, I'm checking our codebase to see if we have support for it. We might've already added it and failed to check if it works 🙂 I need to submit a PR (or at least an issue) to https://github.com/qdsfdhvh/compose-imageloader to include the target.
👍🏻 1
Sent a PR to compose-imageloader, once merged I'll update the Droidcon codebase to support arm64 simulator. Thanks for bringing it up!
👏🏾 1
👏🏻 1
Great news! They merged it and released a new version, so I'll update the Droidcon codebase tomorrow
🎉 2
@Alejandro Rios Updated code in the
main
branch.
a
Thank you very much
But now I'm getting this error: 😖
Copy code
> Task :shared-ui:compileCommonMainKotlinMetadata FAILED
e: java.lang.IllegalStateException: e: Could not find "/Users/alejandrorios/Documents/Workstation/Kotlin-Native/DroidconKotlin/shared-ui/build/kotlinSourceSetMetadata/commonMain/org.jetbrains.kotlinx-atomicfu/org.jetbrains.kotlinx-atomicfu-nativeInterop.klib" in [/Users/alejandrorios/Library/Application Support/kotlin/daemon]
t
That's weird, try cleaning and running it again
Are you running build from Xcode?
a
nop, I'm running
./gradlew build
from Intellij
t
I haven't tried that, so it might be failing. I always run the project from Xcode (when I want it to run on simulator) or from IntelliJ running to Android device
a
I'm following the
IOSDEV
README instructions, I guess that I need to do that in order to run the app in a simulator, right?
r
The issue with the
compileCommonMainKotlinMetadata
might be related to incompatible versions of Kotlin (hierarchical project structure). I had a somewhat similar issue with the
./gradlew build
command. Once I updated the dependencies to match the Kotlin version in the project, those errors disappeared.
t
Shoot, I'm sorry those instructions are old and I forgot to update them 😕
a
@Tadeas Kriz please let me know once you update that Readme to run the iOS version of the app
s
Thats wonderful news and I hope one day Touchlab or JetBrains will bring this as a production ready framework. I would love getting rid of SwiftUI. 🙂