microsoft / microsoft/thrifty

Support iOS Simulator Arm64 Target

Open
#545 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
542
Forks
101
Avg merge
1d 12h
Merged PRs (30d)
2

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in build.gradle and inspect the existing iOS targets and their framework and cinterop configuration. Add the iosSimulatorArm64 target consistently with the current setup, then verify that the runtime artifact can be built for an M1 simulator.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, kotlin
Domain
build-system, mobile
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.