# Android SDK snapshot swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a\_android links x86\_64 libs for aarch64 target on Apple Silicon

**URL:** <https://forums.swift.org/t/android-sdk-snapshot-swift-development-snapshot-2026-03-09-a-android-links-x86-64-libs-for-aarch64-target-on-apple-silicon/85333>\
**Category:** Android\
**Tags:** android\
**Created:** [March 13, 2026, 7:30pm UTC](https://forums.swift.org/t/android-sdk-snapshot-swift-development-snapshot-2026-03-09-a-android-links-x86-64-libs-for-aarch64-target-on-apple-silicon/85333 "2026-03-13T19:30:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![micheltlutz](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/micheltlutz/32/36608_2.png) [@micheltlutz](https://forums.swift.org/u/micheltlutz)\
**Post date:** [March 13, 2026, 7:30pm UTC](https://forums.swift.org/t/android-sdk-snapshot-swift-development-snapshot-2026-03-09-a-android-links-x86-64-libs-for-aarch64-target-on-apple-silicon/85333/1 "2026-03-13T19:30:04Z")

</div>

Need help

## Environment

- **Host machine** : Apple Silicon Mac (M4 Pro), `arm64-apple-macosx`
- **Tooling** :
  - `swiftly 1.1.1`
  - Host toolchain installed via `swiftly`:
    - `main-snapshot-2026-03-09`

  - Android SDK bundle instalado via `swift sdk`:
    - `swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a_android`

- **Android NDK** : 27.3.13750724  
(`$ANDROID_NDK_HOME=/Users/<user>/Library/Android/sdk/ndk/27.3.13750724`)

## Project

Minimal SwiftPM executable package:

```swift
// swift-tools-version: 6.3
import PackageDescription

let package = Package(
    name: "hello",
    targets: [
        .executableTarget(name: "hello"),
        .testTarget(name: "helloTests", dependencies: ["hello"]),
    ],
    swiftLanguageModes: [.v6]
)

```

## What I’m trying to do

Build this package for Android **ARM64** using the Android SDK bundle and the matching host toolchain:

```bash
cd /Volumes/MLI-MK45/Developer/S4A/testes/hello

swiftly run swift build +main-snapshot-2026-03-09 \
  --swift-sdk swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a_android \
  --triple aarch64-unknown-linux-android24

```

## Evidence that the bundle contains ARM64 libs

Inside the installed SDK bundle I can see `swift-aarch64/android`:

```bash
cd /Users/<user>/Library/org.swift.swiftpm/swift-sdks/swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a_android.artifactbundle

ls swift-android/swift-resources/usr/lib/swift-aarch64/android

```

Output (truncated):

```plaintext
Android.swiftmodule
Swift.swiftmodule
Foundation.swiftmodule
...
libswiftCore.so
libswiftAndroid.so
libswift_Concurrency.so
...
aarch64/
...

```

So the SDK clearly ships ARM64 modules and `.so` files for Android.

## Actual behavior / error

When I build with `--triple aarch64-unknown-linux-android24`, the linker still tries to link **x86\_64** Android libraries:

```plaintext
warning: multiple Swift SDKs match ID `swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a_android` and host triple arm64-apple-macosx, selected one at /Users/<user>/Library/org.swift.swiftpm/swift-sdks/swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a_android.artifactbundle/swift-android
[1/1] Planning build
Building for debugging...
error: link command failed with exit code 1 (use -v to see invocation)
ld.lld: error: /Users/<user>/Library/org.swift.swiftpm/swift-sdks/swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-x86_64/android/libswiftSwiftOnoneSupport.so is incompatible with aarch64linux
ld.lld: error: /Users/<user>/Library/org.swift.swiftpm/swift-sdks/swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-x86_64/android/libswiftCore.so is incompatible with aarch64linux
ld.lld: error: /Users/<user>/Library/org.swift.swiftpm/swift-sdks/swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-x86_64/android/libswift_Concurrency.so is incompatible with aarch64linux
ld.lld: error: /Users/<user>/Library/org.swift.swiftpm/swift-sdks/swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-x86_64/android/libswift_StringProcessing.so is incompatible with aarch64linux
ld.lld: error: /Users/<user>/Library/org.swift.swiftpm/swift-sdks/swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-x86_64/android/libswift_RegexParser.so is incompatible with aarch64linux
ld.lld: error: /Users/<user>/Library/org.swift.swiftpm/swift-sdks/swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-x86_64/android/libswiftCore.so is incompatible with aarch64linux
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[1/2] Linking hello

```

Note that the paths are all under `swift-x86_64/android`, even though the target triple is `aarch64-unknown-linux-android24` and `swift-aarch64/android` exists in the bundle.

If I instead build for `x86_64-unknown-linux-android24`:

```bash
swiftly run swift build +main-snapshot-2026-03-09 \
  --swift-sdk swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a_android \
  --triple x86_64-unknown-linux-android24

```

the build completes successfully and I can push/run the binary on an x86\_64-capable environment.

## Expected behavior

Given that:

- The bundle contains ARM64 libraries under `swift-aarch64/android`, and
- I’m passing `--triple aarch64-unknown-linux-android24`,

I would expect the Swift driver/toolchain to:

- Select the **aarch64** libraries under `swift-aarch64/android`, not `swift-x86_64/android`, and
- Produce a working `aarch64` executable suitable for an Android ARM64 device/emulator.

## Question

Is this a known issue/limitation of the `swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a_android` SDK bundle, or am I missing an additional flag/configuration to make the driver pick `swift-aarch64/android` for `aarch64-unknown-linux-android24` on Apple Silicon?

Any guidance or workaround to force the use of the ARM64 libs in this snapshot would be very helpful.

---

<div class="post-metadata">

**Author:** ![Finagolfin](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/finagolfin/32/34388_2.png) [@Finagolfin](https://forums.swift.org/u/Finagolfin)\
**Post date:** [March 13, 2026, 8:26pm UTC](https://forums.swift.org/t/android-sdk-snapshot-swift-development-snapshot-2026-03-09-a-android-links-x86-64-libs-for-aarch64-target-on-apple-silicon/85333/2 "2026-03-13T20:26:11Z")

</div>

I suggest you follow [our Getting Started instructions for Android _exactly_](https://www.swift.org/documentation/articles/swift-sdk-for-android-getting-started.html), which you are not here, and that you only install one Android SDK bundle snapshot so that linked command works. The `--triple` flag you're using instead has [always been broken when used with SDK bundles](https://github.com/swiftlang/swift-package-manager/issues/7330) since they were added years ago, in [exactly this way for _all_ SDK bundles](https://github.com/swiftlang/swift-package-manager/issues/9220), I'll have a fix soon.

---

<div class="post-metadata">

**Author:** ![Morten\_Bek\_Ditlevsen](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/morten_bek_ditlevsen/32/28133_2.png) [@Morten\_Bek\_Ditlevsen](https://forums.swift.org/u/Morten_Bek_Ditlevsen)\
**Post date:** [March 14, 2026, 6:08am UTC](https://forums.swift.org/t/android-sdk-snapshot-swift-development-snapshot-2026-03-09-a-android-links-x86-64-libs-for-aarch64-target-on-apple-silicon/85333/3 "2026-03-14T06:08:46Z")

</div>

I also sometimes get a little confused when installing the tool chain.  
I just moved to a new machine and tried to follow the guide, but not exactly.  
The guide mentions:

```swift
swiftly install main-snapshot-2025-12-17

```

I assume that it is still ok to follow the guide close to exactly, but using a newer build?

If so: is 6.3 or main preferred for stability?

---

<div class="post-metadata">

**Author:** ![Finagolfin](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/finagolfin/32/34388_2.png) [@Finagolfin](https://forums.swift.org/u/Finagolfin)\
**Post date:** [March 14, 2026, 6:28am UTC](https://forums.swift.org/t/android-sdk-snapshot-swift-development-snapshot-2026-03-09-a-android-links-x86-64-libs-for-aarch64-target-on-apple-silicon/85333/4 "2026-03-14T06:28:19Z")

</div>

> [@Morten\_Bek\_Ditlevsen](#):
>
> still ok to follow the guide close to exactly, but using a newer build?

Yes, newer builds are preferred, in fact. We will update those instructions to say that.

> [@Morten\_Bek\_Ditlevsen](#):
>
> If so: is 6.3 or main preferred for stability?

Definitely 6.3, which sees a lot less changes compared to the main branch, particularly now that the release is close.

---

<div class="post-metadata">

**Author:** ![bclee](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/bclee/32/18072_2.png) [@bclee](https://forums.swift.org/u/bclee)\
**Post date:** [March 14, 2026, 6:49am UTC](https://forums.swift.org/t/android-sdk-snapshot-swift-development-snapshot-2026-03-09-a-android-links-x86-64-libs-for-aarch64-target-on-apple-silicon/85333/5 "2026-03-14T06:49:15Z")

</div>

I filed a bug a few hours ago—maybe it’s related? [macOS arm64: swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a ships x86\_64-only bianires, and is unusable on Apple Silicon hosts · Issue #87865 · swiftlang/swift · GitHub](https://github.com/swiftlang/swift/issues/87865)
