# Swift Installer for Windows on ARM?

**URL:** <https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104>\
**Category:** Compiler\
**Tags:** windows, arm\
**Created:** [March 31, 2023, 4:24pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104 "2023-03-31T16:24:11Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fritzt](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/fritzt/32/16046_2.png) [@Fritzt](https://forums.swift.org/u/Fritzt)\
**Post date:** [March 31, 2023, 4:24pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/1 "2023-03-31T16:24:11Z")

</div>

Is there an installer for the Swift compiler for Windows 11 on ARM which is as easy to use as for Intel?

---

<div class="post-metadata">

**Author:** ![compnerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/compnerd/32/2165_2.png) [@compnerd](https://forums.swift.org/u/compnerd)\
**Post date:** [March 31, 2023, 9:37pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/2 "2023-03-31T21:37:49Z")

</div>

I wish the answer were yes, but unfortunately not yet. We just are updating to WiX 4 now which is a prerequisite for building the MSI/Installer for ARM64.

Sadly, it turns out that there is some issue in the ARM64 runtime that I’ve not yet been able to isolate that is causing trouble at runtime due to invalid memory accesses.

I am rather excited about having the toolchain natively on ARM64 on Windows as well, but trying to clean up as much as possible on x64. I’d welcome help to get the ARM64 tests fully passing 🙂

---

<div class="post-metadata">

**Author:** ![compnerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/compnerd/32/2165_2.png) [@compnerd](https://forums.swift.org/u/compnerd)\
**Post date:** [April 3, 2023, 10:04pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/3 "2023-04-03T22:04:39Z")

</div>

Out of curiosity, what exactly were you intending to use this for? I wonder if there is another way to address the use case in the shorter term.

---

<div class="post-metadata">

**Author:** ![Fritzt](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/fritzt/32/16046_2.png) [@Fritzt](https://forums.swift.org/u/Fritzt)\
**Post date:** [April 4, 2023, 9:17am UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/4 "2023-04-04T09:17:01Z")

</div>

The use case would be development with Swift for Windows on a Windows 11 VM on Macs with Apple Silicon. We already use Visual Studio for ARM on it and it is very usable. While my main work is on macOS, we also have the need to compile for Windows.

---

<div class="post-metadata">

**Author:** ![compnerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/compnerd/32/2165_2.png) [@compnerd](https://forums.swift.org/u/compnerd)\
**Post date:** [April 6, 2023, 3:06pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/5 "2023-04-06T15:06:04Z")

</div>

Ah thank you for verifying that. It is one of the items that I am interested in seeing sooner rather than later as it would generally be beneficial to get the ARM64 port rolling 🙂

---

<div class="post-metadata">

**Author:** ![Datagram](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@Datagram](https://forums.swift.org/u/Datagram)\
**Post date:** [April 6, 2023, 6:22pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/6 "2023-04-06T18:22:18Z")

</div>

I add my voice on the need to have Swift for Windows ARM.

Although Swift on Windows currently only supports x64 I have been successfully building my Swift projects on Windows ARM since Windows 10 ARM and now Window 11 ARM using Parallels Desktop on macOS with M1 (not counting also Linux ARM...). The resulting x64 code runs well on Windows ARM (thanks to the Windows x64 emulation layer) and therefore meets our current customer needs, but I would also like to be able to generate for Windows arm64 natively soon.

Thanks.

---

<div class="post-metadata">

**Author:** ![kdeda](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/kdeda/32/14938_2.png) [@kdeda](https://forums.swift.org/u/kdeda)\
**Post date:** [November 11, 2023, 2:08pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/7 "2023-11-11T14:08:13Z")

</div>

Same here, the current x86 build works well on ARM.  
I suspect the builds to take longer since all code is compiled/run as x86.  
So having native ARM support would be great.

---

<div class="post-metadata">

**Author:** ![compnerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/compnerd/32/2165_2.png) [@compnerd](https://forums.swift.org/u/compnerd)\
**Post date:** [November 11, 2023, 8:17pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/8 "2023-11-11T20:17:33Z")

</div>

Yes, ARM64 is an important target to support. However, there are plenty of things that are still missing on the x64 side as well. ARM64 support is getting better, and while we do not have official builds available yet, it is getting reasonably possible. I have been running a native ARM64 toolchain on Windows for a while. There are some more issues to be ironed out with the toolchain, and we still need to iron out how to provide official builds for them.

---

<div class="post-metadata">

**Author:** ![Datagram](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@Datagram](https://forums.swift.org/u/Datagram)\
**Post date:** [February 13, 2024, 2:49pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/9 "2024-02-13T14:49:57Z")

</div>

I just discovered on [The Browser Company · GitHub](https://github.com/thebrowsercompany) the availability of builds for Windows ARM here  
[Release 20240213.2 · thebrowsercompany/swift-build · GitHub](https://github.com/thebrowsercompany/swift-build/releases/tag/20240213.2).

This is a nice discovery and my first attempts to build a simple project using installer-arm64.exe (Swift 5.11)  
on Windows 11 ARM (Under Parallels Desktop) work successfully.

In his latest message on this thread Saleem Abdulrasool mentions that  
"There are some more issues to be ironed out with the toolchain, and we still need to iron out how to provide official builds for them."

The Swift version for Windows ARM is not yet available on [swift.org](http://swift.org), I would like to know more about the current status and the roadmap.

Are there any known major issues that we should avoid?  
Is Swift for Windows ARM planned for version 5.10 or 5.11?

Thanks !

---

<div class="post-metadata">

**Author:** ![compnerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/compnerd/32/2165_2.png) [@compnerd](https://forums.swift.org/u/compnerd)\
**Post date:** [February 13, 2024, 5:09pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/10 "2024-02-13T17:09:48Z")

</div>

> [@Datagram](#):
>
> Are there any known major issues that we should avoid?

No, there aren't known major issues, most of those have been addressed. There is one crash that we are seeing which we haven't fully isolated and thus do not necessarily have an understanding of the shape of the issue. On the other hand, that is a large code base with C++ Interop 🤷‍♂️.

> [@Datagram](#):
>
> Is Swift for Windows ARM planned for version 5.10 or 5.11?

There are no concrete plans. We are looking at getting build.ps1 support for cross-compiling the toolchain. This will require subsequent setup on the CI that @mishal_shah would be better suited to help with ascertaining the resourcing for.

In the mean time, the builds that you referenced would be the best choice.

---

<div class="post-metadata">

**Author:** ![Datagram](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@Datagram](https://forums.swift.org/u/Datagram)\
**Post date:** [February 13, 2024, 5:49pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/11 "2024-02-13T17:49:10Z")

</div>

Thanks for the feedback Saleem, very appreciated !

---

<div class="post-metadata">

**Author:** ![compnerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/compnerd/32/2165_2.png) [@compnerd](https://forums.swift.org/u/compnerd)\
**Post date:** [February 13, 2024, 6:12pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/12 "2024-02-13T18:12:01Z")

</div>

[Add cross-compiling support for the windows toolchain by hjyamauchi · Pull Request #71584 · apple/swift · GitHub](https://github.com/apple/swift/pull/71584) is the PR that @hjyamauchi and I worked on recently to add the support for the cross-compilation so that we can get this functionality enabled for official releases as well.

---

<div class="post-metadata">

**Author:** ![hjyamauchi](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/hjyamauchi/32/30083_2.png) [@hjyamauchi](https://forums.swift.org/u/hjyamauchi)\
**Post date:** [February 13, 2024, 8:29pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/13 "2024-02-13T20:29:44Z")

</div>

Yes!

---

<div class="post-metadata">

**Author:** ![Fritzt](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/fritzt/32/16046_2.png) [@Fritzt](https://forums.swift.org/u/Fritzt)\
**Post date:** [July 9, 2024, 3:24pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/14 "2024-07-09T15:24:06Z")

</div>

Now that ARM64 installers for Swift-main are available on the homepage, I was wondering what version of Python is required to set up debugging in Visual Studio Code. Python 3.9 binaries for Windows on ARM were never officially released. Is there a trusted source for Python 3.9 ARM64 or do we need a different version?

By the way, thanks to everyone involved in bringing Swift to Windows on ARM. 🙂

---

<div class="post-metadata">

**Author:** ![compnerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/compnerd/32/2165_2.png) [@compnerd](https://forums.swift.org/u/compnerd)\
**Post date:** [July 9, 2024, 3:27pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/15 "2024-07-09T15:27:34Z")

</div>

There are binaries available on nuget for python 3.9 on ARM64 - [NuGet Gallery | pythonarm64 3.9.10](https://www.nuget.org/packages/pythonarm64/3.9.10). We are trying to track the same version of python across x64 and ARM64 as well as across macOS and Windows, and hopefully we will be able to use releases off of [python.org](http://python.org) whenever the next python bump occurs.

---

<div class="post-metadata">

**Author:** ![hjyamauchi](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/hjyamauchi/32/30083_2.png) [@hjyamauchi](https://forums.swift.org/u/hjyamauchi)\
**Post date:** [July 9, 2024, 4:36pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/16 "2024-07-09T16:36:49Z")

</div>

Nice. I'm glad that the installer is available: [Swift.org - Install Swift](https://www.swift.org/install/windows/)

 ![Screenshot 2024-07-09 at 9.30.56 AM](https://global.discourse-cdn.com/swift/original/3X/2/7/27bab21d9b0ed16bf0e761b9817538aae14ff5d0.png)

---

<div class="post-metadata">

**Author:** ![Fritzt](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/fritzt/32/16046_2.png) [@Fritzt](https://forums.swift.org/u/Fritzt)\
**Post date:** [July 9, 2024, 5:14pm UTC](https://forums.swift.org/t/swift-installer-for-windows-on-arm/64104/17 "2024-07-09T17:14:58Z")

</div>

Great, thanks again. After extracting Python from the NuGet package and setting PYTHONHOME (didn't work for me without that environment variable), I can debug Swift code in Visual Studio Code without any problem.
