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 did these steps:
rm -rf ~/Library/Developer/Xcode/DerivedData
When I reopened the Xcode, launched the project, and then launched the app it successively ran on my device