I receive the following error when trying to run the app on my device.
error: failed to launch \'/Users/michael/Library/Developer/Xcode/DerivedData/Build/Pro
I solved this problem many times with DhilipSiva's solution. However, it may not work sometimes. If that is the case, consider deleting and re-adding the target.