Technical blog post about Compose UI on iOS with t...
# feed
k
Technical blog post about Compose UI on iOS with the Droidcon NYC app: https://twitter.com/kpgalligan/status/1571865919709650945?s=20&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. πŸ™‚