Trying to bundle SOUL_PatchLoader.dylib
inside my app bundle’s Frameworks folder and as per Apple’s requirements the binary needs to be signed. Singing works using my credentials but when trying to launch and use the application I get the following.
Crashed Thread: 51 SOUL Compiler
Exception Type: EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes: 0x0000000000000032, 0x0000000117afb000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 0x2
kernel messages:
VM Regions Near 0x117afb000:
CG image 0000000117af4000-0000000117afa000 [ 24K] rw-/rwx SM=PRV
--> VM_ALLOCATE 0000000117afb000-0000000117afe000 [ 12K] r-x/rwx SM=COW
WebKit Malloc 0000000117b00000-0000000117c00000 [ 1024K] rw-/rwx SM=PRV
Thread 51 Crashed:: SOUL Compiler
0 ??? 0x0000000117afb000 0 + 4692357120
1 SOUL_PatchLoader.dylib 0x0000000111941a62 soul::patch::PatchPlayerImpl::compile(soul::CompileMessageList&, soul::LinkOptions const&, soul::patch::CompilerCache*, soul::patch::SourceFilePreprocessor*, soul::patch::ExternalDataProvider*, soul::patch::ConsoleMessageHandler*) + 9058
2 SOUL_PatchLoader.dylib 0x000000011193c448 soul::patch::PatchInstanceImpl::compileNewPlayer(soul::patch::PatchPlayerConfiguration const&, soul::patch::CompilerCache*, soul::patch::SourceFilePreprocessor*, soul::patch::ExternalDataProvider*, soul::patch::ConsoleMessageHandler*) + 1016
3 com.deleteandzero.sattern 0x000000010c2283c7 soul::patch::SOULPatchAudioProcessor::run() + 247
4 com.deleteandzero.sattern 0x000000010c3fbf9c juce::threadEntryProc(void*) + 300
5 libsystem_pthread.dylib 0x00007fff6d659109 _pthread_start + 148
6 libsystem_pthread.dylib 0x00007fff6d654b8b thread_start + 15
Questions:
- Packaging
SOUL_PatchLoader.dylib
, I haven’t come across any docs on how to properly do this. Is this possible, allowed? - Will there be a signed version of the binary at some point?
I’m interested in the smoothest installation process for the user, and bundling is preferred, but maybe I’m just going about this the wrong way.
I still have a couple places I can poke to make sure I’m not doing anything wrong, any suggestions much appreciated.
Thanks