hello all! I’ve been trying to understand this iss...
# multiplatform
c
hello all! I’ve been trying to understand this issue: • when trying to run the iOS app from Android Studio the simulator opens but the app doesn’t install if you go to run configurations there’s an error there saying “Error: Selected scheme “iosApp” does not support “iphonesimulator”“. while trying to debug this I’ve noticed that this happens due to cocoapods; I’ve tried the pod like
SwiftLint
and everything works, but if I use other ones like
AlertToast
or
SDWebImageSwiftUI
it doesn’t work. any ideia why? I’m able to run the app both from xcode and to install it in a real device
m
I'm fairly new to the iOS side myself, but I thought only XCode (or an Apple device) could run the iOS app. Another instance of Apple keeping their prof us safe
c
You’ve the KMM plugin for Android Studio that allows you to run directly from there (assuming that you’ve got the Xcode installed) 🙂
d
@cafonsomota Are you on an M1 Mac? If so, try running Xcode in Rosetta. Then build and install. I've run into your issue before. It's generally caused by one of your library dependencies not including both ARM and Intel.
If Xcode can build and run, then you should be able to jimmy Android Studio to get it to work.
c
hello @David Nedrow, thank you for the reply! yes I’m on a M1 Mac, but I’m able to run it from Xcode without rosetta mode. This is a bit strange, I’ve created a sample project with the template and even that sometimes doesn’t work. And I’m saying sometimes but it wasn’t working for the past days and now, just before replying I’ve tried again it worked 🤔
d
Weird. I've had some intermittent problems with Xcode on the M1s. As you noted, sometimes something works, and the next day without touching anything, it doesn't.
💯 1