run app in Xcode 12 simulator

when i run my app in Xcode 12 simulator it give this error


The file “ERP” 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/Hani/Library/Developer/Xcode/DerivedData/ERP-famblluulftfkoeqfddavcaudaym/Build/Products/Debug-iphonesimulator/ERP.app";

}
  • -

The operation couldn’t be completed. Permission denied

Domain: NSPOSIXErrorDomain

Code: 13

Failure Reason: Permission denied
  • -





System Information



macOS Version 10.15.7 (Build 19H2)

Xcode 12.0.1 (17220)

I get that error on my work machine each time I change any project settings.

Clean project and recompile / run fixes it for me (even though it´s a PITA as it takes 3 minutes for the project I work on)
Same error here when launching iOS simulator with Xcode 12.2. Cleaning the build dir does not solve it though.

I filed a bug report on Nov 25th, no reaction so far (FB8916777).

Any other known workaround?
Same issue when launching iOS simulator with Xcode 12.2
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: {
....
}
  • -

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

Any solution so far?
I've same problem on big sur 11.1
Someone have found a solution ?
also Xcode 12.3 have same problem !!!
Apple.... :(
run app in Xcode 12 simulator
 
 
Q