Hi folks, there is anyway in the Run Configuration...
# multiplatform
s
Hi folks, there is anyway in the Run Configuration of Android Studio KMM Plugin to set the Architecture that will build the application? I’m running in M1 (arm) but the project builds in Xcode with Simulator X64 (because of a dependency), but in the run configuration it using ARM for the simulator, I did not found a way to change this configuration, anyone had this issue?
The command line generated by the plugin:
Copy code
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project PATH-TO-KMM/ios/Project.xcodeproj -scheme "Project" -configuration Debug OBJROOT=PATH-TO-KMM/build/ios SYMROOT=PATH-TO-KMM/ios -sdk iphonesimulator -arch arm64
When I get this command line and run in terminal without
-arch arm64
the build is successfully.
I found a workaround for this limitation. I create a new run configuration shell script without the
-arch arm64
and remove from the iOS Application before launch, the build one and add this new shell script.
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project $PWD/ios/Project.xcodeproj -scheme "Project" -configuration Debug OBJROOT=$PWD/build/ios SYMROOT=$PWD/build/ios -sdk iphonesimulator
It work really well, the annoying thing is that all the Schema configuration, etc, is not directly in shellscript and this is kinda sad.