App build succeeded but can not run

This project writes with Objective-C, it can build succeeded, but not run. It will show
"Details

The file “Service Reports” couldn’t be opened because you don’t have permission to view it.
Domain: NSCocoaErrorDomain
Code: 257
Failure Reason: You don’t have permission.
Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info.
User Info: {
  NSFilePath = "/Users/USERNAME/Desktop/ServiceReportApp64Bit/DerivedData/Service Reports/Build/Products/Debug-iphonesimulator/Service Reports.app";
}
  • -

The operation couldn’t be completed. Permission denied
Domain: NSPOSIXErrorDomain
Code: 13
Failure Reason: Permission denied
  • -".

I checked the FilePath provieded, the .app file displays with a white circle/slash over the icon.
And when I double click this file it will show "You can't open the application "Service Report" because it may be damaged or incomplete."
Any idea guys? Thanks
Answered by DTS Engineer in 628583022
What platform are you targeting here? The path in the error message includes Debug-iphonesimulator, which suggests you’re trying to build an iOS app. But then you go on to write:

And when I double click this file

which only makes sense for a macOS app.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Accepted Answer
What platform are you targeting here? The path in the error message includes Debug-iphonesimulator, which suggests you’re trying to build an iOS app. But then you go on to write:

And when I double click this file

which only makes sense for a macOS app.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
OP, have been able to resolve this issue? I'm experiencing it now and getting the same error. I'm unable to run my app on the iOS simulator.
App build succeeded but can not run
 
 
Q