HBuilderX 检测不到XCode上的模拟器
uni-app 2019-10-16 09:40:17

 HBuilder 检测不到XCode上的模拟器

在终端中尝试命令:

  ~ xcrun simctl list

xcrun: error: unable to find utility "simctl", not a developer tool or in PATH

 

搜索发现是多个XCode 版本导致,想想由于昨天刚安装了homebrew,可能是它导致的

解决方法:

选择一个code版本:

  ~ sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/

Password:

  ~ xcrun simctl list

== Device Types ==

iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s)

iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5)

iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s)

iPhone 6 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus)

iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6)

iPhone 6s (com.apple.CoreSimulator.SimDeviceType.iPhone-6s)

iPhone 6s Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus)

iPhone SE (com.apple.CoreSimulator.SimDeviceType.iPhone-SE)

iPhone 7 (com.apple.CoreSimulator.SimDeviceType.iPhone-7)

iPhone 7 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus)

iPhone 8 (com.apple.CoreSimulator.SimDeviceType.iPhone-8)

iPhone 8 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus)

iPhone X (com.apple.CoreSimulator.SimDeviceType.iPhone-X)

iPhone Xs (com.apple.CoreSimulator.SimDeviceType.iPhone-XS)

iPhone Xs Max (com.apple.CoreSimulator.SimDeviceType.iPhone-XS-Max)

iPhone Xʀ (com.apple.CoreSimulator.SimDeviceType.iPhone-XR)

iPhone 11 (com.apple.CoreSimulator.SimDeviceType.iPhone-11)

iPhone 11 Pro (com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro)

iPhone 11 Pro Max (com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro-Max)

iPad 2 (com.apple.CoreSimulator.SimDeviceType.iPad-2)

iPad Retina (com.apple.CoreSimulator.SimDeviceType.iPad-Retina)

iPad Air (com.apple.CoreSimulator.SimDeviceType.iPad-Air)

iPad mini 2 (com.apple.CoreSimulator.SimDeviceType.iPad-mini-2)

iPad mini 3 (com.apple.CoreSimulator.SimDeviceType.iPad-mini-3)

iPad mini 4 (com.apple.CoreSimulator.SimDeviceType.iPad-mini-4)

iPad Air 2 (com.apple.CoreSimulator.SimDeviceType.iPad-Air-2)

iPad Pro (9.7-inch) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-)

iPad Pro (12.9-inch) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro)

iPad (5th generation) (com.apple.CoreSimulator.SimDeviceType.iPad--5th-generation-)

iPad Pro (12.9-inch) (2nd generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-)

iPad Pro (10.5-inch) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro--10-5-inch-)

iPad (6th generation) (com.apple.CoreSimulator.SimDeviceType.iPad--6th-generation-)

iPad (7th generation) (com.apple.CoreSimulator.SimDeviceType.iPad--7th-generation-)

iPad Pro (11-inch) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro--11-inch-)

iPad Pro (12.9-inch) (3rd generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---3rd-generation-)

iPad mini (5th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-mini--5th-generation-)

iPad Air (3rd generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Air--3rd-generation-)

Apple TV (com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p)

Apple TV 4K (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-4K)

Apple TV 4K (at 1080p) (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-1080p)

Apple Watch - 38mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-38mm)

Apple Watch - 42mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-42mm)

Apple Watch Series 2 - 38mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-38mm)

Apple Watch Series 2 - 42mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-42mm)

Apple Watch Series 3 - 38mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-38mm)

Apple Watch Series 3 - 42mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-42mm)

Apple Watch Series 4 - 40mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-4-40mm)

Apple Watch Series 4 - 44mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-4-44mm)

Apple Watch Series 5 - 40mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-40mm)

Apple Watch Series 5 - 44mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-44mm)

== Runtimes ==

iOS 13.1 (13.1 - 17A844) - com.apple.CoreSimulator.SimRuntime.iOS-13-1 

tvOS 13.0 (13.0 - 17J585) - com.apple.CoreSimulator.SimRuntime.tvOS-13-0 

watchOS 6.0 (6.0 - 17R575) - com.apple.CoreSimulator.SimRuntime.watchOS-6-0 

== Devices ==

-- iOS 13.1 --

    iPhone 8 (43EED842-FF29-403D-93FC-38086D7A03AE) (Shutdown) 

    iPhone 8 Plus (9F171B95-723D-493D-B780-DF4E45362AFC) (Shutdown) 

    iPhone 11 (FE706588-1215-4605-B290-00E695BB6E07) (Shutdown) 

    iPhone 11 Pro (84634E06-DC4B-4D62-9351-52872BA92B2C) (Shutdown) 

    iPhone 11 Pro Max (769BF6E3-452B-4BEE-887A-618827ABAAC4) (Shutdown) 

    iPad Pro (9.7-inch) (C15EF89A-3D75-481B-ADBC-19F735EB9D37) (Shutdown) 

    iPad Pro (11-inch) (39968388-4473-4CC7-9CC2-CB161B73B8F9) (Shutdown) 

    iPad Pro (12.9-inch) (3rd generation) (D4EE2188-7385-48C3-8B3D-B4D4CE94A8A5) (Shutdown) 

    iPad Air (3rd generation) (200AFE78-8CCD-4E93-B151-A01201775AE6) (Shutdown) 

-- tvOS 13.0 --

    Apple TV (4C6FC68F-A497-4036-BE1E-9C687208A7BE) (Shutdown) 

    Apple TV 4K (52A0317F-47FC-4063-800E-4B272BEB44E1) (Shutdown) 

    Apple TV 4K (at 1080p) (A578B3E3-0F5C-4CC7-8C1D-4053596F5C98) (Shutdown) 

-- watchOS 6.0 --

    Apple Watch Series 4 - 40mm (55E3B6E1-F110-4F2C-B55D-8CBC6639B0A3) (Shutdown) 

    Apple Watch Series 4 - 44mm (AAEF60E3-E24A-47EF-B728-7797E0C57834) (Shutdown) 

    Apple Watch Series 5 - 40mm (6837B235-9A50-451C-959B-8D0736DA3369) (Shutdown) 

    Apple Watch Series 5 - 44mm (972D4399-AD78-4400-9C24-1C5F7545BA06) (Shutdown) 

== Device Pairs ==

834EE410-AB78-46DC-AD4F-58AE80F0D682 (active, disconnected)

    Watch: Apple Watch Series 5 - 40mm (6837B235-9A50-451C-959B-8D0736DA3369) (Shutdown)

    Phone: iPhone 11 Pro (84634E06-DC4B-4D62-9351-52872BA92B2C) (Shutdown)

DAE01F0B-F25F-4149-989D-1A2341237361 (active, disconnected)

    Watch: Apple Watch Series 5 - 44mm (972D4399-AD78-4400-9C24-1C5F7545BA06) (Shutdown)

    Phone: iPhone 11 Pro Max (769BF6E3-452B-4BEE-887A-618827ABAAC4) (Shutdown)

 

 

现在可以正常返回所有的模拟器,问题解决

 

本文来自于:http://www.yoyo88.cn/study/uniapp/459.html

Powered by yoyo苏ICP备15045725号