We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2024-09-30 10:45 AM - last edited on 2024-10-03 10:21 PM by Laszlo Nagy
We have some add-ons, the previous years everything worked fine but this year once we run the installer, we get on the MAC arm/silicon devices the following message:
First it also was on mac intell, but after pref cleaning and reinstalling, the error wasn't there anymore.
On windows our add-ons work fine, no error to be found.
We checked that we publish the add-ons in release mode, our sdk used is 28.200 (most current one on the website) and the bundles are signed correctly. We use visual studio and v142 set.
When creating the installers, no error occurs.
Anyone whom has any idea what we're missing or any tips on how avoid this error?
Solved! Go to Solution.
2024-10-01 02:24 PM
We found out that we had missed a setting in Xcode > menubar Product > Destination. This was set on the option 'My Mac'. When changing it to Any Mac, we could universal binary build our add-ons.
2024-09-30 11:14 AM
I may be wrong, but my understanding is you have to compile separately for Mac Intel and Mac Arm/Silicon (and of course Windows).
Have you compiled the correct version?
Barry.
2024-09-30 08:02 PM
It is possible to compile universal binary Add-Ons for macOS that work with both the Intel and ARM versions of Archicad.
If your Add-On is built this way, the file command on macOS should output something like this:
> file MyAddOn.bundle/Contents/MacOS/MyAddOn
MyAddOn.bundle/Contents/MacOS/MyAddOn: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit bundle x86_64] [arm64:Mach-O 64-bit bundle arm64]
MyAddOn.bundle/Contents/MacOS/MyAddOn (for architecture x86_64): Mach-O 64-bit bundle x86_64
MyAddOn.bundle/Contents/MacOS/MyAddOn (for architecture arm64): Mach-O 64-bit bundle arm64
It's recommended to use the official template which is set up to build universal binary by default:
https://github.com/GRAPHISOFT/archicad-addon-cmake
2024-10-01 02:24 PM
We found out that we had missed a setting in Xcode > menubar Product > Destination. This was set on the option 'My Mac'. When changing it to Any Mac, we could universal binary build our add-ons.