MediaLibrary, what exactly are the signing and entitlement requirements for MediaLibrary and its various classes?

I am working to understand why I can't run an app I created on my own computer for the purpose of testing it.


The app is codesigned using my Developer signing certificate. The App Sandbox is enabled, and I have added the Music Folder R/W (and R/O, neither helped).


Running the app immediately crashes with the EXC_CRASH (Code Signature Invalid) error.


If I remove the entitlements file and disable the sandbox, it gives me the Code=4097 error which appears to be the "you didn't sandbox the app" error.


So what's the trick? What am I missing? What's the deal with there being virtually nothing in the documentation detailing this requirement?

MediaLibrary, what exactly are the signing and entitlement requirements for MediaLibrary and its various classes?
 
 
Q