I am following the instructions at : https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes.
When I run
sudo xcrun simctl runtime add "/Users/<user_name>/Downloads/iOS_17.0.1_Simulator_Runtime.dmg"
I get an error :
(1) Operation not permitted
Accessing '/Users/<user_name>/Downloads/iOS_17.0.1_Simulator_Runtime.dmg' requires Security & Privacy approval.
I get the same error even if
- Xcode in the Applications folder or the Downloads folder.
- If the .dmg is mounted or not.
How can grant access to the .dmg ?