Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装MonkeyDev后,Xcode闪退,看闪退信息像是命中断言 #297

Open
wangbinioscoder opened this issue Aug 10, 2021 · 7 comments

Comments

@wangbinioscoder
Copy link

ProductBuildVersion: 12E262
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-18132/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/Foundation/Specifications/XCSpecification.m:723
Details: Failed to register spec from /Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin: {
SourceDescription = "/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin";
}: Error Domain=XCSpecificationErrorDomain Code=0 "couldn't register specification: malformed property list dictionary (required key 'Identifier' not present)" UserInfo={NSLocalizedDescription=couldn't register specification: malformed property list dictionary (required key 'Identifier' not present)}
Object:
Method: +registerSpecificationsFromDVTPlugInsForDomains:skippingDomains:
Thread: <NSThread: 0x7fd46401bd40>{number = 1, name = main}
Open FDs: 7/256
Hints:

Backtrace:
0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 +[XCSpecification registerSpecificationsFromDVTPlugInsForDomains:skippingDomains:] (in DevToolsCore)
4 XCInitializeCoreIfNeeded (in DevToolsCore)
5 +[Xcode3CoreInitializer ide_initializeWithOptions:error:] (in Xcode3Core)
6 _IDEInitializeBuildSystem (in IDEFoundation)
7 IDEInitialize (in IDEFoundation)
8 -[IDEApplicationController applicationWillFinishLaunching:] (in IDEKit)
9 CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER (in CoreFoundation)
10 ___CFXRegistrationPost_block_invoke (in CoreFoundation)
11 _CFXRegistrationPost (in CoreFoundation)
12 _CFXNotificationPost (in CoreFoundation)
13 -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
14 -[NSNotificationCenter(DVTNSNotificationCenterAdditions_MRR) _dvt_postNotificationName:object:userInfo:] (in DVTFoundation)
15 -[NSApplication finishLaunching] (in AppKit)
16 -[DVTApplication finishLaunching] (in DVTKit)
17 -[NSApplication run] (in AppKit)
18 NSApplicationMain (in AppKit)
19 start (in libdyld.dylib)

abort() called

@fenglee594
Copy link

fenglee594 commented Aug 13, 2021

同样也是
ProductBuildVersion: 12E507
image

@rtcatc
Copy link

rtcatc commented Sep 4, 2021

同样问题

@BrandTime
Copy link

BrandTime commented Sep 15, 2021

解决方法:
/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/Embedded-Device.xcspec
修改上述文件,文本编辑,删除<array>标签内中的起始的两个空<dict>,即<dict/> <dict/>,保存,即可。

@kinkenyuen
Copy link

解决方法:
/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/Embedded-Device.xcspec
修改上述文件,文本编辑,删除<array>标签内中的起始的两个空<dict>,即<dict/> <dict/>,保存,即可。

强的

@steven2008
Copy link

强,解决了

@u0x01
Copy link

u0x01 commented Jan 2, 2022

解决方法:
/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/Embedded-Device.xcspec
修改上述文件,文本编辑,删除<array>标签内中的起始的两个空<dict>,即<dict/> <dict/>,保存,即可。

这个真的强。怎么发现的😂

@crifan
Copy link

crifan commented Jan 12, 2022

解决方法:
/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/Embedded-Device.xcspec
修改上述文件,文本编辑,删除<array>标签内中的起始的两个空<dict>,即<dict/> <dict/>,保存,即可。

这个真的强。怎么发现的😂

==>> 估计是:

Details: Failed to register spec from /Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin

-》出错的文件是:/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin

malformed property list dictionary

-》出错的原因是:plist文件字典格式错误

required key 'Identifier' not present

-》出错的细节是:id不存在

-》由此去:
/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin
去找,可以找到plist文件:

/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/Embedded-Device.xcspec

很容易发现,最前面,有2个多余的dict

    <dict/>
    <dict/>

删除即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants