“iOS 17.0.simruntime” cannot be opened because the developer cannot be verified
Asked Answered
H

8

14

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:

Popup

Downloaded from the Apple Developer site

How can I fix this?

Hamann answered 5/6, 2023 at 23:38 Comment(1)
For some reason I got same/similar error while updating Xcode to 15.2 through macOS App Store.Gerlach
H
6

⚠️ 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:

  1. Close Xcode and Eject the simulator DMG.
  2. Change the attributes of the downloaded dmg using the following command:

xattr -cr PATH_TO_DOWNLOADED_DMG

  1. Copy the .simruntime to the desired destination (/Library/Developer/CoreSimulator/Profiles/Runtimes)
  2. Run Xcode again and wait for the validation to be completed

💡 Use Xcode command line to install the DMG

Xcode can install runtimes and verify them on the fly with the xcrun tool:

xcrun simctl runtime add <Drag DMG Here>
Hamann answered 5/6, 2023 at 23:53 Comment(3)
I just had the same issue and these steps solved it for me. You should accept your own answer!Raila
I'm wondering, does this skip the code signing and might actually allow harmful code to be executed? Some other (strangely) downvoted answers suggested using the commands Apple provided, which basically boils down to something like: sudo xcrun simctl runtime add ~/Downloads/iOS_17_beta_Simulator_Runtime.dmg It did work for me without any issues.Perverse
@MarcoBoerner It’s not as dangerous as using sudo. Although that method is an alternative to install runtimes (I think for Xcode 15) they does not answer the original question which is downloaded from the AppleHamann
T
26

Try this:

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService

Thermocline answered 1/5 at 8:46 Comment(1)
the best solutionPinchhit
T
8

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

Thadeus answered 7/6, 2023 at 23:15 Comment(0)
H
6

⚠️ 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:

  1. Close Xcode and Eject the simulator DMG.
  2. Change the attributes of the downloaded dmg using the following command:

xattr -cr PATH_TO_DOWNLOADED_DMG

  1. Copy the .simruntime to the desired destination (/Library/Developer/CoreSimulator/Profiles/Runtimes)
  2. Run Xcode again and wait for the validation to be completed

💡 Use Xcode command line to install the DMG

Xcode can install runtimes and verify them on the fly with the xcrun tool:

xcrun simctl runtime add <Drag DMG Here>
Hamann answered 5/6, 2023 at 23:53 Comment(3)
I just had the same issue and these steps solved it for me. You should accept your own answer!Raila
I'm wondering, does this skip the code signing and might actually allow harmful code to be executed? Some other (strangely) downvoted answers suggested using the commands Apple provided, which basically boils down to something like: sudo xcrun simctl runtime add ~/Downloads/iOS_17_beta_Simulator_Runtime.dmg It did work for me without any issues.Perverse
@MarcoBoerner It’s not as dangerous as using sudo. Although that method is an alternative to install runtimes (I think for Xcode 15) they does not answer the original question which is downloaded from the AppleHamann
R
1

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

Reliquary answered 8/6, 2023 at 7:29 Comment(3)
In my case Xcode 15 beta 1 would download but fail to complete installation due to a "registration" error, so I went with the accepted answer.Rhodonite
The documentation doesn't make sense. Nothing happens after the files finish downloading and if you launch Xcode it displays a dialog asking to download the simulators again.Shiprigged
I just installed the Beta 2 and it worked like the documentation says. It registered that I already downloaded the iOS and VisionOS runtimes and installed them on the first start of the Xcode Beta. Maybe in the first Beta the installation process was still a bit buggy?Reliquary
D
1

best thing you can do is, go to storage and remove previous ios simulators in storage---> Developers-->ios 1x.xx remove all those previous bundles.

Worked for me after trying numerous different solutions.

Despinadespise answered 21/2 at 10:21 Comment(1)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Virgilio
B
0

I'm just reinstall the iOS 17.0 platform and that's work for me. Xcode -> Settings -> Platform (delete and install after).

Breast answered 12/5 at 13:9 Comment(0)
B
-1

Make sure you have latest Xcode and Mac OS

Open terminal and run

xcodebuild -downloadPlatform iOS
Brolly answered 13/12, 2023 at 23:56 Comment(0)
I
-2

Xcode > Window > Devices and Simulators” in Xcode and right-clicking on the ones you want to remove

Incongruent answered 10/3 at 12:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.