Rez error for AU plugin

I just noticed that the Audio Unit plugin fails to build on my project with JUCE 5.1.2 with he following error:
failed to find juce_audio_plugin_client_AU/juce_audio_plugin_client_AU.r
The “interesting” part is that there is a folder juce_audio_plugin_client, but not juce_audio_plugin_client_AU.
All the other plugins are compiling properly, so I’m a little bit lost here…

Seems like recreating the project from scratch helped…
I also noticed that even if I rename the project and change its name, it doesn’t change the underlying shared project name?

It does, but Xcode automatically creates schemes for every target it finds in a project. The Projucer never adds schemes itself, so the first time you open a JUCE project in Xcode it will create a scheme for every single target in the project. The schemes live in a file separate from the main project file.

If you now change the name of a target then the old scheme files still remain and Xcode will still show them. It’s best to just remove the Builds folder altogether and let the Projucer recreate it for you. However, you will loose some Xcode settings like the location of breakpoints etc.

I’m having the same issue trying to build an AU and I’m not sure how to fix it. What do you mean by “recreating the project from scratch”?. I tried deleting my JUCELibraryCode and Builds folders and “Clean” in xcode but nothing seems to work. Any help would be greatly appreciated!

1 Like

I’ve seen this before when someone is trying to use a system directory as a workspace. Are you trying to build your project in somewhere like /Developer rather than somewhere in your home directory?

Thanks t0m, that appears to be it! It wasn’t my actual project but the JUCE library was in /Developer which was what had caused the problem. I moved everything out and now its compiling the AU as well.