Can anyone help me fix/clean up my build.gradle? I...
# kotlin-native
r
Can anyone help me fix/clean up my build.gradle? I can run the app on the simulator, but as soon as I want to test it on my iPhone, the build fails and states that a target for ios_arm64 or ios_arm32 must be present. Probably many things can be simplified there or are no longer up-to-date. I have different parts from different guides or templates, but I don't know much about gradle.
r
On line 51 you're always selecting the simulator target (iosX64). Try this line instead
Copy code
def iosTarget = System.getenv('SDK_NAME')?.startsWith("iphoneos") ? presets.iosArm64 : presets.iosX64
👍 1
r
Thanks that did the job. Was easier than I expected.