Unable to create a simulator via simctl sometimes
Originator: | masayuki.wakizaka | ||
Number: | rdar://FB8222633 | Date Originated: | Jul 31, 2020 at 2:31 PM |
Status: | Open | Resolved: | |
Product: | XcodeKit | Product Version: | |
Classification: | Incorrect/Unexpected Behavior | Reproducible: | sometimes |
After installing Xcode 12.0 beta 3, sometimes it can't create a simulator via `xcrun simctl create`. Even uninstalling the Xcode doesn't help. I think it is maybe because uninstalling the Xcode didn't change the version of simctl. ===================================================================== $ xcrun simctl create iphone8_20200731135103_55f2e27a-1fa9-486f-b493-6523b9782ee6 'iPhone 8' com.apple.CoreSimulator.SimRuntime.iOS-13-4 Unable to create a device for device type: iPhone 8 (com.apple.CoreSimulator.SimDeviceType.iPhone-8), runtime: iOS 13.4 (13.4 - 17E255) - com.apple.CoreSimulator.SimRuntime.iOS-13-4 (unavailable, failed to open liblaunch_sim.dylib) An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=401): The iOS 13.4 simulator runtime is not available. failed to open liblaunch_sim.dylib Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator runtime. Underlying error (domain=NSPOSIXErrorDomain, code=53): The operation couldn’t be completed. XPC error talking to SimLaunchHostService: <error: 0x7fff8e9169a0> { count = 1, transaction: 0, voucher = 0x0, contents = "XPCErrorDescription" => <string: 0x7fff8e916b08> { length = 18, contents = "Connection invalid" } } XPC error talking to SimLaunchHostService: <error: 0x7fff8e9169a0> { count = 1, transaction: 0, voucher = 0x0, contents = "XPCErrorDescription" => <string: 0x7fff8e916b08> { length = 18, contents = "Connection invalid" } ===================================================================== $ xcrun simctl --version @(#)PROGRAM:simctl PROJECT:CoreSimulator-732.7 $ xcodebuild -version Xcode 11.4 Build version 11E146 $ ls /Library/Developer/CoreSimulator/Profiles/Runtimes/ iOS 11.4.simruntime iOS 12.4.simruntime iOS 13.1.simruntime
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Got a update response from Apple
Please verify this issue with the Xcode 12.2 GM and update your bug report with your results by logging into https://feedbackassistant.apple.com/ or by using the Feedback Assistant app.
Xcode 12.2 GM (12B5044c) https://developer.apple.com/download/
For a complete list of logging instructions visit: https://developer.apple.com/bug-reporting/profiles-and-logs/