Solution for anyone trying to install AppVeyor BYOC on an M1 Mac

Oliver Collyer's Avatar

Oliver Collyer

03 Oct, 2021 09:37 AM

Following the default instructions at (https://www.appveyor.com/docs/byoc/mac/) end up with an error at the point of installing the AppVeyor host agent, relating to the architecture.

I think the AppVeyor cmdlet needs updating to support M1 or something (not really sure), but in the meantime you can do it via emulation:

First Install Homebrew to run under Rosetta (this can exist fine alongside a native install):

arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

When installing powershell do it like this instead:

arch -x86_64 brew install cask powershell

Now follow the usual instructions once inside a powershell terminal, to install the AppVeyor Host Agent.

  1. Support Staff 1 Posted by Feodor Fitsner on 03 Oct, 2021 11:51 PM

    Feodor Fitsner's Avatar

    Hi Oliver,

    Thanks for sharing the instructions! Even if there is .NET 6 now which supports M1 PowerShell itself is still based on .NET 5, so emulation is, perhaps, the only solution now.

  2. Feodor Fitsner closed this discussion on 04 Dec, 2021 09:02 PM.

  3. Oliver Collyer re-opened this discussion on 09 Sep, 2022 12:13 PM

  4. 2 Posted by Oliver Collyer on 09 Sep, 2022 12:13 PM

    Oliver Collyer's Avatar

    Now that MS have released a version of .Net with native Arm64 support, could we see some movement on properly supporting the host-agent on M1 Macs?

    https://devblogs.microsoft.com/dotnet/announcing-dotnet-framework-481/

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

27 Jan, 2023 08:06 PM
27 Jan, 2023 08:05 PM
25 Jan, 2023 03:23 PM
25 Jan, 2023 03:22 PM
23 Jan, 2023 03:29 PM