Failed to find juce_audio_plugin_client_AU/juce_audio_plugin_client_AU.r

I am using Github Actions to build my application.
The build works find on my local machine using below command
xcodebuild -project Builds/MacOSX/MyApp.xcodeproj -alltargets -parallelizeTargets -configuration Release build CODE_SIGN_IDENTITY='My Certificate Id'
But in github MacOS environment, it fails giving me below error:

failed to find juce_audio_plugin_client_AU/juce_audio_plugin_client_AU.r

/Users/runner/work/My_APP/My_APP/JuceLibraryCode/include_juce_audio_plugin_client_AU.r:8: ### Rez - noErr (0) during open of “juce_audio_plugin_client_AU.r”.
Fatal Error!
/Users/runner/work/My_APP/My_APP/JuceLibraryCode/include_juce_audio_plugin_client_AU.r:8: ### Rez - Fatal Error, can’t recover.

juce_audio_plugin_client_AU.r: ### Rez - Since errors occurred, /Users/runner/work/My_APP/My_APP/Builds/MacOSX/build/ -’s resource fork was not completely updated.

Command /Applications/ failed with exit code 3

Any idea how to fix this? It has been quite painful.
Thanks a lot and really appreciate it.

check your Xcode custom flags.
In one case for me we had some old SRCROOT=../../Source; which messed things up.

But as I assume this is from Projucer, look carefully on your projucer project defines/escaping that could mess a build.

Thank you @ttg
The code I push into the repo is after saving the project on the projucer. So whatever runs locally or on the github action is basically the same code. The xcode version on the github was 12.4 so I brought my down from 12.5 to 12.4 as well so my local machine would match the other one but the problem stays the same.
Where can I check the SRCROOT?
Also I had some errors with the way the files were being imported so instead of
#include <…> I had to change them to #include “…”
That solved those issues but the Rez still remains.

Just look in your Xcode custom flags and escaped (") text. those can easily break things.

Thank you @ttg
Can you show me where in Xcode I can find the escaped text? I looked every where and I did not find it.
Thank you. Really appreciate it.

If you wish share your projucer (.jucer) file. You can also share it privately via private message.