Encountered this issue randomly while re-running my app after making changes on Xcode 8.0. I tried Product > Clean
, and even deleted the build folder cmd + option + shift + k
and deleted the derived data folder entirely, but that didn’t end up working. Still got the same error. Restarting Xcode is what ended up working for me.