2

so I have two questions, I'll try to keep it short (also, im a noob):

  1. I run logic pro x and other software to make music, and some third party plugins make program crash if they get a:

    Exception Type: EXC_BAD_ACCESS (Code Signature Invalid)

    I can solve this problem by codesign -f -s - (file) but I'd rather not. Is there a way to disable code signature check so it won't even give me an error and won't check it?

I assume the answer is no and therefore my second question:

  1. I need to run sudo codesign -f -s - on a .bundle file that's inside a Resource folder inside a .component (a package), and I have a lot of these to go through, for example:

    Plugin_2.component -> Resources -> **Plugin_2.bundle**  
    Plugin_3.component -> Resources -> **Plugin_3.bundle**
    

    is there a way to make a command to do it automatically?

    I was thinking maybe in automator? something to make it do these 2 steps:

    1. look for a .bundle file inside a Resource folder in a package
    2. run sudo codesign -f -s - on it

    Is that possible? maybe make it in automator and add it to Services in the right click menu? or to make it scan a whole folder with .component?

Any help would be appreciated!
Thanks

  • for help with commandline scripting, you can ask on Superuser or Unix – Igor Skochinsky Oct 1 '18 at 7:53
  • It should be possible to just remove the signature on the main executable, which contains the library-validation flag which is what enforces the signature check on plugins. Once that flag is gone, plugins should no longer be validated. – pmdj Jan 17 at 10:04
1

after some trial and error i managed to solve it easily with the following command in terminal

find . -name "*.bundle" -execdir sudo codesign -f -s - {} \;  

find . -name "*.EXTENSION" is responsible for finding the certain file extension in a directory

-execdir YOUR COMMAND {} \; is responsible to executing the command.
using -execdir -> on the results of the previous find command ( {} )

fairly simple after all, hope this can help someone in the future

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.