cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

add-ons on Mac ARM Silicon error the file is an outdated Add-on that cannot be used with this

Valerie Becquart
Contributor

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:

ValerieBecquart_0-1727685657102.png

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?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Valerie Becquart
Contributor

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.

ValerieBecquart_0-1727785430282.png

 

View solution in original post

3 REPLIES 3
Barry Kelly
Moderator

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.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Viktor Kovacs
Graphisoft
Graphisoft

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

 

Solution
Valerie Becquart
Contributor

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.

ValerieBecquart_0-1727785430282.png