VST3 plugin crashes cubase on open

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Cubase LE AI Elements 9.5 [3374]
Path:                  /Applications/Cubase LE AI Elements 9.5.app/Contents/MacOS/Cubase LE AI Elements 9.5
Identifier:            com.steinberg.cubasesoft9v5
Version:               9.5.0.55 (9.5.0.55)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-07-04 21:49:32.3407 -0500
OS Version:            macOS 12.6.1 (21G217)
Report Version:        12
Anonymous UUID:        A5B28BD8-39E7-6FAE-85D3-5F6ABB96F619

Sleep/Wake UUID:       F5C1AEB5-2C5F-4B64-8A7D-0AF17810AF2C

Time Awake Since Boot: 3100 seconds
Time Since Wake:       276 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	    0x7ff81071900e __pthread_kill + 10
1   libsystem_pthread.dylib       	    0x7ff81074f1ff pthread_kill + 263
2   libsystem_c.dylib             	    0x7ff81069ad24 abort + 123
3   libc++abi.dylib               	    0x7ff81070b082 abort_message + 241
4   libc++abi.dylib               	    0x7ff8106fc1a5 demangling_terminate_handler() + 242
5   libobjc.A.dylib               	    0x7ff8105f8e19 _objc_terminate() + 104
6   libc++abi.dylib               	    0x7ff81070a4a7 std::__terminate(void (*)()) + 8
7   libc++abi.dylib               	    0x7ff81070ceeb __cxa_rethrow + 99
8   libobjc.A.dylib               	    0x7ff810602d6c objc_exception_rethrow + 37
9   AppKit                        	    0x7ff81323ed62 -[NSApplication run] + 659
10  Cubase LE AI Elements 9.5     	       0x11059ed3e 0x10ecfd000 + 25828670
11  Cubase LE AI Elements 9.5     	       0x1103c88fd 0x10ecfd000 + 23902461
12  Cubase LE AI Elements 9.5     	       0x1100e1520 0x10ecfd000 + 20858144
13  Cubase LE AI Elements 9.5     	       0x1100e77eb 0x10ecfd000 + 20883435
14  dyld                          	       0x11480852e start + 462

{"app_name":"Cubase LE AI Elements 9.5","timestamp":"2023-07-04 21:49:35.00 -0500","app_version":"9.5.0.55","slice_uuid":"1b760bc9-fe56-3f20-8c4c-f058eab99fc0","build_version":"9.5.0.55","platform":1,"bundleID":"com.steinberg.cubasesoft9v5","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.6.1 (21G217)","incident_id":"187940D1-6239-4327-B1C6-CA20E9E2AE5A","name":"Cubase LE AI Elements 9.5"}

This plugin is building fine on an M2 mac.
Users are asking for intel versions. I didnt have much luck targeting intel machines using and M2 mac althought there may be a way in xcode and projucer I tried targeting x64_86 in projucer and “any mac ( intel )” in XCODE.


I can build a standalone app using this older intel macbook air running JUCE 7 on osx 12.6.1 
on this computer xcode version is 14. 

The gui displays very briefly before an exception or an assert crashes cubase. 

Dont know what to do. 
Hard to attach a debugger to a crashed app. 
Sean


no problems with the same VST3 using reaper on the same machine

I also appears to be passing auval

aumu SWws SWsw  -  www.SEanwayland.com: waylosynth55
aumu dls  appl  -  Apple: DLSMusicDevice

If you’re building a standalone on the laptop, you shouldn’t have to “attach” to the debugger. You just run it in the debugger and it should show you exactly where it’s crashing. This is an older version of Xcode, but with it set like this (Edit Scheme…), it just automatically launches inside the debugger.