I’m accessing a dylib through a declare. I’m having success with some functions but with another function my app crashes with the following:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000038
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_c.dylib 0x930d4837 flockfile + 18
1 libsystem_c.dylib 0x930d61ca fputc + 37
2 Speclib.dylib 0x01738f58 CSpectroOperations::Spectro_LoadParameters() + 4274
3 Speclib.dylib 0x01716488 CSpectro::Spectro_Init0(int, long) + 1108
The dylib has an additional dylib which it presumably accesses and I put them both into the app’s Frameworks folder.
The path I am supplying to the declare is: @executable_path/../Frameworks/Speclib.dylib
I’ve been doing tons of research online to find the source of the crash and think it might be due to pathing but I’m mystified
Anyone know what might be the problem here? I’m dead in the water at the moment .
thanks!