I'm trying to upload dSYMs in Build Phases using Fabric's upload-symbols shell script. When I run my script in Terminal it works every time. When it's run by Xcode during a build it works around 10% of the time. When it fails, it always fails at the step: "Begin processing dSYM".
It is the last phase in Build Phases. This is the debug output when it hangs:
upload-symbols[14391:269314] debug: Inspecting next path: <path to dSYM file>
upload-symbols[14391:269314] debug: Found dSYM at path: <path to dSYM file>
upload-symbols[14391:269318] debug: Begin processing dSYM at <path to dSYM file>
I let it run overnight once to ensure it wasn't just a timing issue, but in the morning, it was still hung at the same place. When it succeeds, it completes the upload within seconds.
Any ideas why it might be hanging as a run script but not when run in Terminal?