UCB can't inject define symbols to read-only rsp files

Description of issue: UCB fails to inject custom define symbols because my response files are read-only (checked into Perforce).
What is the proper way to workaround this? What is UNITY_CLOUD_BUILD used for?

Unity version: 5.5 & 5.6

Source control: Perforce

Build target: Happens to all targets and projects

Build log (relevant chunk):
55: + Installing UnityCloud build tools
56: Injecting custom Scripting Define Symbols ‘UNITY_CLOUD_BUILD’
57: /BUILD_PATH/.mason/buildpacks/unity/bin/compile: line 241: /BUILD_PATH/xxxxx/Assets/mcs.rsp: Permission denied
58: /BUILD_PATH/.mason/buildpacks/unity/bin/compile: line 241: /BUILD_PATH/xxxxx/Assets/gmcs.rsp: Permission denied

Hello,

UNITY_CLOUD_BUILD is a #define used in Platform Dependent Compilation. This consists of some preprocessor directives that let you partition your scripts to compile and execute a section of code exclusively for one of the supported platforms.

Looking at one of your recent builds, I’m not seeing any of the lines you posted in the logs. Are you still encountering issues?

  • Sophia

It still happens. I deleted my own rsp files for now. You can reproduce it by having read only response files.