@Sawatakashi Lol not really I only set this up last week but I had similar issues.
For the first issue on Windows you have basically solved it. When you build the AAX in Visual Studio (so the one that is in HISE's SDK folder), set it to static release. Each time you build your HISE project it will build against this version and you will be good to go. There is a post about this on the forum somewhere.
When building the AAX SDK on Xcode it was a bit more trial and error for me but I think what happens is HISE is only designed to build for arm64 or Intel slice âŻx86_64 (depending on what you set in your Projucer). I ended up asking chat gpt for the solution to the universal binary and it gave me the right response. I found the terminal command (option 2) to be more efficient:
Option 1 â Reâbuild in Xcode (GUI)
Open the project again
Libs/AAXLibrary/MacBuild/AAXLibrary.xcodeproj
Target & Build Settings
Select the AAXLibrary_libcpp target.
In Build Settings
Architectures â Standard Architectures (arm64,âŻx86_64)
(donât choose âarm64 onlyâ).
Build Active Architecture Only â No (Debug and Release).
Excluded Architectures â (leave empty)
Choose a universal build destination
In the scheme selector (the dropâdown next to the âśď¸ button) pick
Any MacâŻ(My Mac) or Any Mac (Mac Catalyst) â not âMy Mac (Apple Silicon)â.
That generic destination tells Xcode to build all valid slices.
Build (âB)
When it finishes, run:
lipo -info "$HOME/HISE/tools/SDK/AAX/Libs/Release/libAAXLibrary_libcpp.a"
Expected output:
Architectures in the fat file: libAAXLibrary_libcpp.a are: arm64 x86_64
Option 2 â Oneâliner with xcodebuild (CLI)
From Terminal inside Libs/AAXLibrary/MacBuild/:
xcodebuild -project AAXLibrary.xcodeproj \
-target AAXLibrary_libcpp \
-configuration Release \
-sdk macosx \
ARCHS="arm64 x86_64" \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
BUILD_ACTIVE_ARCH_ONLY=NO
This explicitly asks Xcode to build both slices and drops the fat libAAXLibrary_libcpp.a in:
Libs/Release/libAAXLibrary_libcpp.a
Check it with lipo -info as above.