So randomly after several hours of work this morning on my app, Xcode just stopped letting me test my app on my iPhone. But I can still test it in the simulator.
Now
Six years ago I added the agvtool to a build script to auto-increment the build numbers in the project. For some reason, this week that started causing every single build to fail with the above, seemingly cryptic errors. Removing the script from my Build Phase allows my app to build again. The offending script: "xcrun agvtool next-version -all" Perhaps the latest update of Xcode is very particular about the project file being changed in the middle of a build?