Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support iOS Simulator Arm64 Target #545

Open
rhappe opened this issue Jan 12, 2024 · 0 comments
Open

Support iOS Simulator Arm64 Target #545

rhappe opened this issue Jan 12, 2024 · 0 comments

Comments

@rhappe
Copy link
Contributor

rhappe commented Jan 12, 2024

Hello! I tried using the runtime artifact in a project that I recently started working on. Since I'm using a simulator on an M1 MacBook, I'll need to be able to build against the iosSimulatorArm64 target (at least, to be able to run the project in the simulator).

I'm thinking the target can simply be added to the build.gradle file:

def iosTargets = [
    iosArm64(),
    iosSimulatorArm64(),
    iosX64(),
]
iosTargets.each { target ->
    target.binaries {
        framework {
            baseName = "Thrifty"
        }
    }
    target.compilations.main.cinterops {
        KT62102Workaround {}
    }
}

Edit: realizing that the style change above is against the contributions guidelines but I think it still gets the point across. :) Otherwise:

iosSimulatorArm64 {
    binaries {
        framework {
            baseName = "Thrifty"
        }
    }
    compilations.main.cinterops {
        KT62102Workaround {}
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant