I just downloaded the iOS 17 runtime, but after copying it into the destination, this popup opens and the Xcode could not use the simulator as expected:

Downloaded from the Apple Developer site
How can I fix this?
I just downloaded the iOS 17 runtime, but after copying it into the destination, this popup opens and the Xcode could not use the simulator as expected:

Downloaded from the Apple Developer site
How can I fix this?
On
It is possible to call simctl on the downloaded .dmg to add the simulator runtime manually. That is a safer workflow that also performs code signing verification. The command would be:
xcrun simctl runtime add <pathTo/platform_simulator_runtime.dmg>
Manually copying the .simruntime into the intended location for installation is an unsupported workflow.
To learn more, take a look at https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes
On
You're not supposed to copy it by hand. After downloading Xcode, the runtime .dmg and the download manifest, start Xcode. It will prompt you to install the already downloaded runtime.
See the documentation: https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes#Install-Simulator-runtimes-from-the-Apple-Developer-website
⚠️ Overcome the error:
This error is because of some permissions of the copying files. You should trust the DMG before coping the the file to make them verified:
.simruntimeto the desired destination (/Library/Developer/CoreSimulator/Profiles/Runtimes)Use Xcode command line to install the DMG
Xcode can install runtimes and verify them on the fly with the
xcruntool: