arm64 not supported in macos image

Yevgeny Kazakov's Avatar

Yevgeny Kazakov

01 Jun, 2021 09:23 PM

Looks like the macos images suffer with the same problem as mentioned here:

https://travis-ci.community/t/osx-image-xcode12-2-does-not-come-with-macos-11-sdk-no-way-to-compile-for-arm/10611

Specifically, the headers located in
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/

do not include the arm64 architecture, hence the builds are fail with "architecture is not supported".

Here is an example header:

/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/signal.h

The solution, as discussed in the thread above, is to completely remove the SDKs folder:

sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*

After that I was able to build the project.

Should, perhaps, the SDKs be completely removed from the images?

  1. 1 Posted by Yevgeny Kazakov on 02 Jun, 2021 12:54 PM

    Yevgeny Kazakov's Avatar

    Alternatively, using software update one can install MacOSX11.1.sdk

    softwareupdate --install -a

  2. Support Staff 2 Posted by Feodor Fitsner on 04 Jun, 2021 12:11 AM

    Feodor Fitsner's Avatar

    So, what is more acceptable solution?

  3. 3 Posted by Christian Filli... on 06 Jun, 2021 08:17 PM

    Christian Fillion's Avatar

    Building for ARM64 on AppVeyor works here. Try running `xcode-select -s /Applications/Xcode-12.3.app` first to use Xcode 12 (first version to support ARM64) instead of the command line tools.

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