xcrun simctl list failed to show the list (DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/)(xcrun simctl list无法显示该列表(DVTAssertions:/Library/cache/com.apple.xbs/中的断言失败))
本文介绍了xcrun simctl list无法显示该列表(DVTAssertions:/Library/cache/com.apple.xbs/中的断言失败)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试运行xcrun命令时,它显示以下错误,并且无法显示模拟器列表。
xcrun:错误:找不到实用工具";simctl";,不是开发人员工具或路径
注意:在我的计算机中路径中有simctl
/Applications/Xcode.app/Contents/Developer/usr/bin/simctl
但在运行命令时
xcrun--查找simctl
xcrun简单列表
它显示以下错误。
2021-12-06 15:06:27.787 xcodebuild[10591:373217] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-18132/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/Foundation/Specifications/XCSpecification.m:1504
Details: propertyList should be an instance inheriting from TSPropertyListDictionary, but it is nil
Object: <XCSpecificationProxy: 0x7fef67ca5540>
Method: -loadedSpecification
Thread: <NSThread: 0x7fef67f07d80>{number = 1, name = main}
Hints:
Backtrace:
0 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 -[XCSpecificationProxy loadedSpecification] (in DevToolsCore)
4 +[XCSpecification specificationForIdentifier:inDomain:] (in DevToolsCore)
5 -[XCCommandLineToolSpecification_FileTypeAcceptanceInfo initWithPropertyListDictionary:forToolSpecification:] (in DevToolsCore)
6 -[XCCommandLineToolSpecification_FileTypeAcceptanceInfo initWithFileTypeIdentifier:forToolSpecification:] (in DevToolsCore)
7 -[XCCommandLineToolSpecification initWithPropertyListDictionary:inDomain:] (in DevToolsCore)
8 -[XCCompilerSpecification initWithPropertyListDictionary:inDomain:] (in DevToolsCore)
9 -[PBXCompilerSpecificationGcc initWithPropertyListDictionary:inDomain:] (in DevToolsCore)
10 -[PBXCompilerSpecificationGcc3_1 initWithPropertyListDictionary:inDomain:] (in DevToolsCore)
11 -[XCSpecificationProxy loadedSpecification] (in DevToolsCore)
12 +[XCSpecification specificationForIdentifier:inDomain:] (in DevToolsCore)
13 -[XCSpecificationProxy loadedSpecification] (in DevToolsCore)
14 +[XCSpecification specificationForIdentifier:inDomain:] (in DevToolsCore)
15 -[XCSpecificationProxy loadedSpecification] (in DevToolsCore)
16 +[XCSpecification specificationForIdentifier:inDomain:] (in DevToolsCore)
17 -[XCSpecificationProxy loadedSpecification] (in DevToolsCore)
18 __58-[XCSDKPackage createCommandLineToolSpecificationRegistry]_block_invoke (in DevToolsCore)
19 __79+[XCSpecification enumerateSpecificationsInDomain:includingDefault:usingBlock:]_block_invoke (in DevToolsCore)
20 __202+[XCSpecification _recursivelyEnumerateSpecificationsInStartDomain:currentDomain:registryNameOrNil:specificationIdentifierOrNil:alreadyEnumeratedDomains:alreadyEnumeratedIdentifiers:stopPtr:usingBlock:]_block_invoke (in DevToolsCore)
21 __202+[XCSpecification _recursivelyEnumerateSpecificationsInStartDomain:currentDomain:registryNameOrNil:specificationIdentifierOrNil:alreadyEnumeratedDomains:alreadyEnumeratedIdentifiers:stopPtr:usingBlock:]_block_invoke_2 (in DevToolsCore)
22 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
23 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] (in CoreFoundation)
24 __202+[XCSpecification _recursivelyEnumerateSpecificationsInStartDomain:currentDomain:registryNameOrNil:specificationIdentifierOrNil:alreadyEnumeratedDomains:alreadyEnumeratedIdentifiers:stopPtr:usingBlock:]_block_invoke.55 (in DevToolsCore)
25 +[XCSpecification _recursivelyEnumerateSpecificationsInStartDomain:currentDomain:registryNameOrNil:specificationIdentifierOrNil:alreadyEnumeratedDomains:alreadyEnumeratedIdentifiers:stopPtr:usingBlock:] (in DevToolsCore)
26 +[XCSpecification _enumerateAllSpecificationsInDomain:registryNameOrNil:specificationIdentifierOrNil:includingDefault:usingBlock:] (in DevToolsCore)
27 +[XCSpecification enumerateSpecificationsInDomain:includingDefault:usingBlock:] (in DevToolsCore)
28 -[XCSDKPackage createCommandLineToolSpecificationRegistry] (in DevToolsCore)
29 -[XCPlatformSpecification loadSpecificationsAndPlugins] (in DevToolsCore)
30 +[XCPlatformSpecification loadAllPlatforms] (in DevToolsCore)
31 XCInitializeCoreIfNeeded (in DevToolsCore)
32 +[Xcode3CoreInitializer ide_initializeWithOptions:error:] (in Xcode3Core)
33 _IDEInitializeBuildSystem (in IDEFoundation)
34 IDEInitialize (in IDEFoundation)
35 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
36 main (in xcodebuild)
37 start (in libdyld.dylib)
sh: line 1: 10593 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find simctl 2> /dev/null
xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find simctl 2> /dev/null' failed with exit code 34304: (null) (errno=Invalid argument)
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH
推荐答案
我在Xcode13.3测试版中遇到过这个问题,我重新安装了稳定的Xcode13.2.1版本,它解决了我的错误。
https://developer.apple.com/download/all/
这篇关于xcrun simctl list无法显示该列表(DVTAssertions:/Library/cache/com.apple.xbs/中的断言失败)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
沃梦达教程
本文标题为:xcrun simctl list无法显示该列表(DVTAssertions:/Library/cache/com.apple.xbs/中的断言失败)


猜你喜欢
- Android - 拆分 Drawable 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01