Clang Undefined symbols for architecture arm64:

    Mar 03 2021 | 12:37 pm
    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
    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/ -target arm64-apple-macos11.0 -bundle -isysroot /Applications/ -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/ -Xlinker -object_path_lto -Xlinker /Users/fjw/Library/Developer/Xcode/DerivedData/SeAU1-cbsrqglbqsputhdcjvexxlfbixbz/Build/Intermediates.noindex/ -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/ -o /Users/fjw/Library/Developer/Xcode/DerivedData/SeAU1-cbsrqglbqsputhdcjvexxlfbixbz/Build/Intermediates.noindex/
    Best regards Frans-Jan Wind