olilarkin / wdl-ol

Enhanced version of Cockos' iPlug - A simple-to-use C++ framework for developing cross platform audio plugins and targeting multiple plugin APIs with the same code. VST / VST3 / Audiounit / RTAS / AAX (Native) formats supported. NOTE: THIS IS OBSOLETE, PLEASE SEE IPLUG2:
https://github.com/iplug2
936 stars 187 forks source link

Could not launch auvaltool internal error #120

Closed alana314 closed 5 years ago

alana314 commented 6 years ago

When I try to open and build the AU in the demo IPlugEffect in Xcode 9.4.1 in OS X 10.13.6, the build succeeds but then I get "Could not launch auvaltool - internal error." When I try validating it in Logic, the validator crashes.

kyr0 commented 6 years ago

I ran into the very same issue:

bildschirmfoto 2018-08-23 um 22 32 29

So I digged a little deeper and I found the reasons for it:

bildschirmfoto 2018-08-23 um 23 27 09 bildschirmfoto 2018-08-23 um 23 27 22

1) Open a terminal and run: cp /usr/bin/auval /Applications/auval. This will copy the binary of auval (auvaltool is only a symbolic link) -- and place it into a place your user can reach without any security limitation.

2) We gonna fix the schema config:

3) Take a look into your resource.h. Note the values of PLUG_UNIQUE_ID and PLUG_MFR_ID:

bildschirmfoto 2018-08-23 um 23 02 59

4) Then select the build target in the menu:

bildschirmfoto 2018-08-23 um 22 53 32

5) Go to: "Edit Scheme...":

bildschirmfoto 2018-08-23 um 22 53 36

6) Select "Run" and:

7) Disable the "Debug executable toggle"

bildschirmfoto 2018-08-23 um 23 13 30

8) Click on the combobox that says "auvaltool"-> Select: "Other..." and select the "auval" executable you just copied to /Applications

bildschirmfoto 2018-08-23 um 23 13 37

9) Now select "Run" -> Switch to "Arguments" tab:

bildschirmfoto 2018-08-23 um 22 53 43

10) Instead of -v aufx Ipef Acme, which is dummy data and totally wrong, put -v aufx $PLUG_UNIQUE_ID $PLUG_MFR_ID, i.e.: -v aufx Lapa AHVI

=> FINALLY, run the task again, and...

bildschirmfoto 2018-08-23 um 23 19 52

IT WORKS!

@olilarkin Maybe we can improve the duplicate.py by adding two more arguments to specify set the PLUG_UNIQUE_ID and PLUG_MFR_ID and replace them automatically in resource.h and the Xcode schema config. Maybe I could take a look at it and pull request. Because: If new users start using this project they even might think it doesn't work "at all" when the first thing that happens after clicking "Build" is an "Internal error" :))

olilarkin commented 6 years ago

thanks, there are some updates to the duplicate.py coming in iPlug2, with PLUG_UNIQUE_ID and PLUG_MFR_ID getting randomised on duplication. I didn't know you could get $PLUG_UNIQUE_ID $PLUG_MFR_ID in the auval args list.

AliceRixte commented 5 years ago

I'm sorry, I'm very new to all of this but can I build AU devices on Windows? I couldn't see a corresponding solution on VS17. You can smash my fingers if I'm a bit too bold

olilarkin commented 5 years ago

no. please use the wdl forum, not github issues for questions like this

olilarkin commented 5 years ago

closing this since it's not a bug