This error is likely related to permissions and security settings on macOS not disk space. "Operation not permitted" error usually occurs when the debugger doesn't have the necessary permissions to attach to the process.
You should try these solutions:
Try resetting all simulator settings:
xcrun simctl erase all
Check your Privacy & Security settings:
Reset debugging permissions:
sudo security authorizationdb remove system.privilege.taskport
sudo security authorizationdb write system.privilege.taskport < /System/Library/Security/PrivilegedHelperTools/system.privilege.taskport.plist
Try running this command in Terminal:
csrutil status
If System Integrity Protection (SIP) is enabled, it might be interfering. However, I don't recommend disabling SIP unless absolutely necessary.
Check your signing settings in Xcode:
Try running Xcode as root (this is temporary for testing):
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
If none of the above works, you should:
Restart Xcode
Restart your Mac
Reinstall Command Line Tools:
xcode-select --install
Try these solutions in order and if they still do not resolve the issue, then I would like to know which version of Xcode you’re using, version of macOS, and is this happening with all simulator devices or just specific ones?