I have a fork of pd-lib-builder which supports arm64 & universal builds on macOS. The PR has been sitting for some time but we have been using it successfully for a few projects for some time now:To build for arm64, you need a new enough Xcode (12.2 I believe) and that's it. You can cross-compile on an x86_64 machine for arm64 and vice-versa.
Versão do Xcode | Sistema operacional mínimo necessário | SDK | Arquitetura | Destinos de implantação | Simulador | Swift |
---|
Xcode 12.4 | macOS Catalina 10.15.4 (Mac com processador Intel) macOS Big Sur 11 (Mac com Apple Silicon) | iOS 14.4 macOS 11.1 tvOS 14.3 watchOS 7.2 DriverKit 20.2 | x86_64 armv7 armv7s armv7k arm64 arm64e arm64_32 | iOS 9-14.4 iPadOS 13-14.4 macOS 10.9-11.1 tvOS 9-14.3 watchOS 2-7.2 DriverKit 19-20.2 |
make install objectsdir=../ arch="i386 x86_64" extension=d_fat and that works just fine
but...
make install objectsdir=../ arch="arm64 x86_64" extension=d_fat fails miserably, this is what I get
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture
On Mar 10, 2022, at 11:30 PM, pd-dev-request@lists.iem.at wrote:Message: 2
Date: Thu, 10 Mar 2022 17:57:23 -0300
From: Alexandre Torres Porres <porres@gmail.com>
To: Sebastian Shader <sebfumaster@aol.com>
Cc: "pd-dev@lists.iem.at" <pd-dev@lists.iem.at>
Subject: Re: [PD-dev] [PD] how to compile externals for apple silicon?
Message-ID:
<CAEAsFmiUpgiieWwpvM11eyY6kE6bdGiWFqFa8pbvPBjtuaoc4w@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I guess I can install catalina on a partition, but I was hoping to use
pdlibbuilder in an easy way, is it possible?