I\'m getting the following error toward the end of the build:
error: could not read data from \'/Users/myname/Library/Developer/Xcode/DerivedData/myapp-ftieubjjfkuwy
In my case the problem was that somehow the Run action in my scheme showed my app's name without the ".app" extension. Editing the scheme and picking AppName.app fixed it.