App crashes in simulator on drag-and-drop install

Similar to this thread: https://developer.apple.com/forums/thread/747417

I built a binary of our app and shared it with two other colleagues. One of them can drag-and.drop to install and run the app on the simulator, the other it crashes immediately on opening.

The error it produces on the console isn't very clear:

SpringBoard: (FrontBoard) [com.apple.FrontBoard:Process] Bootstrapping failed for <FBApplicationProcess: 0x112811c00; app<***.***.***((null))>:<invalid>> with error: <NSError: 0x600000de8540; domain: RBSRequestErrorDomain; code: 5; "Launch failed."> {
    NSUnderlyingError = <NSError: 0x600000de9320; domain: NSPOSIXErrorDomain; code: 1> {
        NSLocalizedDescription = Launchd job spawn failed;
    };
}

His AppleID wasn't on our teams developer list but I already added him, still no luck.

Not sure what else can I check, any suggestions would be appreciated.

Replies

Found the solution for my scenario, the app was quarantined, this fixed the issue: xattr -r -d com.apple.quarantine ./XXXX.app