Posts

Post not yet marked as solved
2 Replies
1.8k Views
I upgraded to Catalina on Monday January 13th and everything appears to be good. Tuesday the 14th I open Xcode 11.13.1 and update an iOS app. The only thing is, it now fails to build and all existing simulators are gone.I deleted Xcode, remove everything from /Library/Developer/CoreSimulator/, empty the trash and reboot.I installed Xcode from the Mac App Store and command line tools, rebootOpen up Xcode and there are no simulators listed. So I download iOS 12.0 Simulator. Stil nothing.Xcode -> Preferences Components -> Simulators has as checkbox next to iOS 12.0The device drop down only lists my hardware and Generic iOS Device> sudo xcrun simctl list devices --json{ "devices" : { "com.apple.CoreSimulator.SimRuntime.iOS-13-3" : [ { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 8", "udid" : "4EE26A2C-8AF1-40A7-9BB9-D005AB7C6B16" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 8 Plus", "udid" : "6FDDBD2C-4117-4732-8509-137410D9AC10" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 11", "udid" : "90F28B71-0149-4908-AC99-8C668E3AC0D2" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 11 Pro", "udid" : "1746D5BE-6DF3-43D9-B472-218F3EDB5D28" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 11 Pro Max", "udid" : "4C2761F3-EE05-440E-979E-EC94B4CAFDF0" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Pro (9.7-inch)", "udid" : "686226F9-2BAF-4B03-9AE0-26685D06B94C" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad (7th generation)", "udid" : "AB5D45B5-4699-4336-818A-2A4C12146772" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Pro (11-inch)", "udid" : "FC8B2864-4392-4B5B-9CD3-1BF18B22FBA3" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Pro (12.9-inch) (3rd generation)", "udid" : "A51361D3-D9D8-44A6-B361-DC89B4446E66" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Air (3rd generation)", "udid" : "FD55E93E-DBA3-4AC0-8F72-B685911E6966" } ], "com.apple.CoreSimulator.SimRuntime.iOS-12-0" : [ { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 5s", "udid" : "8148F178-A25C-4D4D-BBE0-CFEB370B45EE" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 6 Plus", "udid" : "5B3B61A3-B6A3-447C-A6FF-9EDB8B4F00C0" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 6", "udid" : "1B68DB00-3441-45C3-8A5E-64037EE11A6D" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 6s", "udid" : "2C27B381-A579-40CA-894A-7BF169FE5CD0" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 6s Plus", "udid" : "C62C9A86-0CA8-474E-842F-B0D78549C591" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone SE", "udid" : "6226F63A-BCAF-4CF8-8A6D-776D4FFAC7C9" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 7", "udid" : "4E42CEBF-8893-41AD-A123-F49A1CF22272" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 7 Plus", "udid" : "EAE73141-3ABA-4A6A-A888-0E1224C0C061" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 8", "udid" : "803E3004-7483-45C7-B82C-FB75A0BCD214" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 8 Plus", "udid" : "5D2065AA-F107-4F28-8D13-AD23337E48E0" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone X", "udid" : "8D5AC7C2-DFCB-4B6D-B5D8-90A291B5D514" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone XS", "udid" : "D5650A43-31F5-4960-B946-198F09CECE3D" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone XS Max", "udid" : "A170BBFC-00C3-468A-8079-CE5061EFDFBC" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone XR", "udid" : "DB8A15B7-D0DE-4499-A24F-C5F0CCD20D6D" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Air", "udid" : "987B3D98-7C55-4A54-B1ED-D1A1DF079B2D" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Air 2", "udid" : "594DF46A-E3E6-45BF-B9D2-6D81D02C12AD" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Pro (9.7-inch)", "udid" : "72D3F13A-38FB-4056-A455-52BBCBD5F1C9" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Pro (12.9-inch)", "udid" : "CEF6772C-B99F-4326-9634-E430D5E2E2DD" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad (5th generation)", "udid" : "E832F327-7C59-4C29-BFF9-F609FC63FC78" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Pro (12.9-inch) (2nd generation)", "udid" : "A646DB50-0447-4EE6-BA57-840450B2FB93" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Pro (10.5-inch)", "udid" : "1CA9D2CF-50B7-49F0-B6F7-885EC81D8702" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad (6th generation)", "udid" : "625C5405-B843-43F2-9B1F-22DEEFF7E72B" } ], "com.apple.CoreSimulator.SimRuntime.tvOS-13-3" : [ { "state" : "Shutdown", "isAvailable" : true, "name" : "Apple TV", "udid" : "092039B1-D257-4696-BC3E-2491EABF0B73" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "Apple TV 4K", "udid" : "32D1F52A-E63F-4679-BC79-02730D8B5E19" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "Apple TV 4K (at 1080p)", "udid" : "840385BA-A1A1-41B9-B8C4-C3FDAEA44212" } ], "com.apple.CoreSimulator.SimRuntime.watchOS-6-1" : [ { "state" : "Shutdown", "isAvailable" : true, "name" : "Apple Watch Series 4 - 40mm", "udid" : "68FB7A75-5E24-46A9-AC56-5E353940890F" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "Apple Watch Series 4 - 44mm", "udid" : "4E1890A8-F763-4B2E-AEEC-D59A3A7573D0" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "Apple Watch Series 5 - 40mm", "udid" : "4E3D4444-0684-4E39-8340-09A93EBC61A7" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "Apple Watch Series 5 - 44mm", "udid" : "29B278B9-552F-4597-B897-9EA2EA3D0EE5" } ] }}without sudo> sudo xcrun simctl list devices --json2020-01-15 12:56:04.960 simctl[8530:222876] Error Domain=com.apple.CoreSimulator.SimError Code=160 "Unable to determine SimDeviceSet, set_path=(null)" UserInfo={NSLocalizedDescription=Unable to determine SimDeviceSet, set_path=(null), NSUnderlyingError=0x7f9604d27230 {Error Domain=NSPOSIXErrorDomain Code=12 "Cannot allocate memory" UserInfo={NSLocalizedFailureReason=Allocation or initialization failed., NSLocalizedDescription=Failed to initialize simulator device set.}}}Unable to locate device set: Error Domain=com.apple.CoreSimulator.SimError Code=160 "Failed to initialize simulator device set." UserInfo={NSLocalizedFailureReason=Failed to subscribe to notifications from CoreSimulatorService., NSLocalizedDescription=Failed to initialize simulator device set., NSUnderlyingError=0x7f9604d27340 {Error Domain=com.apple.CoreSimulator.SimError Code=160 "Unable to determine SimDeviceSet, set_path=(null)" UserInfo={NSLocalizedDescription=Unable to determine SimDeviceSet, set_path=(null), NSUnderlyingError=0x7f9604d27230 {Error Domain=NSPOSIXErrorDomain Code=12 "Cannot allocate memory" UserInfo={NSLocalizedFailureReason=Allocation or initialization failed., NSLocalizedDescription=Failed to initialize simulator device set.}}}}}> xcrun simctl --version@(#)PROGRAM:simctl PROJECT:CoreSimulator-681.17.2If I try to manually create a new simulator, I get an error "unable to access default device set."> ls -la /usr/bin/xcrun-rwxr-xr-x 1 root wheel 31088 Dec 5 00:32 /usr/bin/xcrunI can't find any other instances of this issue in these forums or via search engine.Everything was running as expected prior to the Catalina upgrade.. I waited weeks to upgrade because of issues like this and I got bit anyway.. Help?
Posted
by bmay.
Last updated
.