I generated a plugin with the provided generator (and latest 3.7.5). If you remove the line
# set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12)
from the generated CMakeLists.txt
, it builds with the “latest” version which, in my case is 12.3 and this leads to this error
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-macos12.3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -L/Users/ypujante/tmp/KoozaGenerated/build/bin/Debug -F/Users/ypujante/tmp/KoozaGenerated/build/bin/Debug -filelist /Users/ypujante/tmp/KoozaGenerated/build/vst3sdk/public.sdk/samples/vst-hosting/inspectorapp/KoozaGenerated.build/Debug/VST3Inspector.build/Objects-normal/arm64/VST3Inspector.LinkFileList -Xlinker -object_path_lto -Xlinker /Users/ypujante/tmp/KoozaGenerated/build/vst3sdk/public.sdk/samples/vst-hosting/inspectorapp/KoozaGenerated.build/Debug/VST3Inspector.build/Objects-normal/arm64/VST3Inspector_lto.o -Xlinker -no_deduplicate -stdlib\=libc++ -fobjc-link-runtime -Wl,-search_paths_first -Wl,-headerpad_max_install_names /Users/ypujante/tmp/KoozaGenerated/build/lib/Debug/libvstgui.a /Users/ypujante/tmp/KoozaGenerated/build/lib/Debug/libvstgui_uidescription.a /Users/ypujante/tmp/KoozaGenerated/build/lib/Debug/libvstgui_standalone.a /Users/ypujante/tmp/KoozaGenerated/build/lib/Debug/libvstgui.a -framework Cocoa -framework QuartzCore -framework Accelerate -framework OpenGL -lexpat -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/ypujante/tmp/KoozaGenerated/build/vst3sdk/public.sdk/samples/vst-hosting/inspectorapp/KoozaGenerated.build/Debug/VST3Inspector.build/Objects-normal/arm64/VST3Inspector_dependency_info.dat -o /Users/ypujante/tmp/KoozaGenerated/build/bin/Debug/VST3Inspector.app/Contents/MacOS/VST3Inspector
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_UTType", referenced from:
objc-class-ref in libvstgui.a(macfileselector.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)