Skip to content

Support iOS Simulator Arm64 Target #545

@rhappe

Description

@rhappe

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 {}
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions