Clang Undefined symbols for architecture arm64:
Hi,
I've made an tiny gen~ patch to test "exportcode" for a gen to auv3 project in xcode. I'm running:
Big Sur 11.3,
Xcode 12.4
Max 8.1.10
using this tutorial https://cycling74.com/tutorials/gen-code-export-audiounits
At this point when I try to build I get this error:Undefined symbols for architecture x86_64:
The error is thrown by clang++ My Guess is the example code being x86_64 compatible and the compiler (or Xcode) using arm64 properties. In the end I need compiling for arm64, since the audio unit needs to run on the Apple M1 chip / iOs.
Is it possible to use gen generated c++ code in the current version of Max? Is there somewhere an updated tutorial which I failed to find?
I've added the Source project with Max/gen patch included
This is the curl pit command:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-macos11.0 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -L/Users/fjw/Library/Developer/Xcode/DerivedData/SeAU1-cbsrqglbqsputhdcjvexxlfbixbz/Build/Products/Debug -F/Users/fjw/Library/Developer/Xcode/DerivedData/SeAU1-cbsrqglbqsputhdcjvexxlfbixbz/Build/Products/Debug -filelist /Users/fjw/Library/Developer/Xcode/DerivedData/SeAU1-cbsrqglbqsputhdcjvexxlfbixbz/Build/Intermediates.noindex/SeAU1.build/Debug/SeAU1.build/Objects-normal/arm64/SeAU1.LinkFileList -Xlinker -object_path_lto -Xlinker /Users/fjw/Library/Developer/Xcode/DerivedData/SeAU1-cbsrqglbqsputhdcjvexxlfbixbz/Build/Intermediates.noindex/SeAU1.build/Debug/SeAU1.build/Objects-normal/arm64/SeAU1_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -stdlib\=libc++ -framework AudioToolbox -framework AudioUnit -framework CoreServices -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/fjw/Library/Developer/Xcode/DerivedData/SeAU1-cbsrqglbqsputhdcjvexxlfbixbz/Build/Intermediates.noindex/SeAU1.build/Debug/SeAU1.build/Objects-normal/arm64/SeAU1_dependency_info.dat -o /Users/fjw/Library/Developer/Xcode/DerivedData/SeAU1-cbsrqglbqsputhdcjvexxlfbixbz/Build/Intermediates.noindex/SeAU1.build/Debug/SeAU1.build/Objects-normal/arm64/Binary/SeAU1
Best regards
Frans-Jan Wind