Emscripten deploy errors with WebGL on OS X

Something must have changed recently (since sometime back in November 2015) when deploying WebGL builds.

I’m getting the following errors

Failed running python "/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc" @"/Users/craigrushforth/Documents/RobotsAndPencils/AgriumJourney2050/Unity_Project/Assets/../Temp/emcc_arguments.resp"

stdout:
WARNING: sanity check failed to run [Errno 13] Permission denied: '/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/emscripten.config_sanity'
stderr:
WARNING  root: [33mdid not see a source tree above or next to the LLVM root directory (guessing based on directory of /Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/Emscripten_FastComp_Mac/llc), could not verify version numbers match[0m
INFO     root: [32m(Emscripten: Running sanity checks)[0m
ERROR    root: [31m/Users/craigrushforth/Documents/RobotsAndPencils/AgriumJourney2050/Unity_Project/Assets/Plugin/HockeyAppUnityIOS/libHockeyAppUnity.a: Unknown format, not a static library![0m

UnityEditor.HostView:OnGUI()

I was getting them on Unity 5.3.1f1 and tried updating to patch 4 and I’m still getting these errors. They look very similar to issues other people have seen on windows and having to run unity as an administrator. I tried running unity with root access (sudo) but it sort of hangs on the dialog where you’re supposed to select your project.

I just tried deploying a WebGL build on a newly created empty project and everything worked fine so this is probably an issue somewhere in our project

This was obviously my fault. Was reading the errors from top to bottom (like normal). The issue seems to be with a HockeyApp not being excluded from the WebGL deploy. This was the issue. Leaving this here in case someone else does something as stupid in the future.