Hello, today I tried add iosSimulatorArm64 to mult...
# kodein
k
Hello, today I tried add iosSimulatorArm64 to multiplatform module but I receive this message from compiler. Do you plan add support for this or maybe it's some problem with my config?
Copy code
* What went wrong:
Execution failed for task ':compileKotlinIosSimulatorArm64'.
> Could not resolve all files for configuration ':iosSimulatorArm64CompileKlibraries'.
   > Could not resolve org.kodein.di:kodein-di:7.8.0.
     Required by:
         project :
      > No matching variant of org.kodein.di:kodein-di:7.8.0 was found. The consumer was configured to find a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'ios_simulator_arm64'
r
Yes, I will check this ASAP to add the target.
The issue here is that Github Actions doesn’t support Apple M1, and we don’t own a Apple M1 to publish Kodein libraries, until then, you will be forced to publish on your local machine.
k
Ok, thanks for info, for ios guys in my team this is so hard to belive, how all world still doesn't adjust to m1 times ;)
v
So I couldn’t run projects with Kodein on M1 mac? Planning to buy in next month
r
Yep you should, I am working on the support
k
@Vadzim Filipovich If you run project using rosseta than everything should works fine (emulation) , but if you plan build native arm than your project should have iosSimulatorArm64 target and all libraries should have same targey
👍 1
r
Currently building https://github.com/Kodein-Framework/Kodein-DI/actions/runs/1329353346 If this passes, you should be able to target iosSimulatorArm64 with the snapshot version 7.9.0-SNAPSHOT
👍 1
In fact we don't need a M1 to build a lib compatible for it, so Github actions should do the job
Just curious are M1 faster than recent i5 regarding build time of KMP projects ?
k
In my company there are only older i9 and never m1, but I can ask ios guys in my team
r
Can you try it out using a snapshot repo ?
maven(url = "<https://oss.sonatype.org/content/repositories/snapshots>")
kodein-DI version
7.9.0-SNAPSHOT
k
I put this line in
repositories
, updated version but I receive error:
Could not find org.kodein.di:kodein-di:7.9.0-SNAPSHOT
Here https://oss.sonatype.org/#nexus-search;quick~kodein-di I see only
r
my bad, its
7.9.0-master-SNAPSHOT
image.png
Hi @Krystian Kaniowski did you get the chance to test this ?
k
hello, we returned to topic at Friday and I can pre-confirm that you solve our problem, when our ios guy adjusts rest of ios configuration to m1 than I will confirm it fully
I confirmed it fully works and have some stats for you regarding speed comparison
r
Nice!
regarding the stats you compared building a native framework on Intel vs ARM ?
k
image.png
👍 2
j
I wasn't fully clear from this discussion but should there be version of KodeinDb that works with M1?
ah, just realised this thread was in relation to
kodein-di
and not
kodein-db
🙂
@romainbsl would it be possible to create a similar snapshot version for
kodein-db
at least as initial test?
r
Hey @John O'Reilly indeed this is possible, I will see what I can do ASAP.
j
That's great, thanks @romainbsl!
Hi @romainbsl, no rush with this but was just wondering if you got chance to create that?
r
Hi @John O'Reilly I need to update other Kodein-Framework projects before that, I will try to do it at the end of the week.
👍 1
Kinda delayed because of some issues with M1 + cinterop 😕 I’ll keep you posted.
j
Thanks....and definitely no rush btw from my side 🙂
Hi, just in case there was any update on this?
r
Hi John, yes Salomon is working hard on DB right now, we hope to have some cool stuff coming soon 🙂
👍 1