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
MarkRS
03/06/2022, 3:55 PM
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
cafonsomota
03/06/2022, 7:44 PM
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
David Nedrow
03/09/2022, 5:30 AM
@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.
David Nedrow
03/09/2022, 5:31 AM
If Xcode can build and run, then you should be able to jimmy Android Studio to get it to work.
c
cafonsomota
03/09/2022, 2:14 PM
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
David Nedrow
03/09/2022, 5:30 PM
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.