Hey, do I get it right, that you can’t run your iO...
# multiplatform
g
Hey, do I get it right, that you can’t run your iOS app with shared code on M1 simulators if you wan’t to use the KTOR client? https://youtrack.jetbrains.com/issue/KTOR-3144
a
Been fighting with this as well. No, you cannot. If you are using M1 you’ll need an actual device…
o
well not actually, I'm using simulator since april. what error do you get?
g
@Osman Saral I was referring to KTOR specifically, do you use KTOR in your project?
o
yes I do
a
Interesting, without Rosetta?
o
yes without rosetta
I'm not targeting arm devices. I'm not sure how but I managed to make it work 😕
I couldn't get a good explanation how my solution work without rosetta.
a
I can’t either to be honest
apple silicon support came with 1.5.30
o
yes but I'm pretty sure I made it work with 1.5.21
a
if you do find out how you made it work please let me know 🙂 it has been a pain in the a**
o
did you check the thread i've shared above? if that doesn't help, can you share your error when you try to build for simulator?
g
So, we were able to solve the problem by running the Xcode with Roseta. It is slower, but it looks OK.
a
Maybe we won’t have to wait much longer to drop rosetta https://github.com/ktorio/ktor/pull/2631
o
maybe you should try to add arm64 to excluded architectures from build settings.