XCode 4.6 - 由于构建错误而无法启动应用程序?

Posted

技术标签:

【中文标题】XCode 4.6 - 由于构建错误而无法启动应用程序?【英文标题】:XCode 4.6 - Failed to launch application due to build error? 【发布时间】:2014-07-29 05:38:51 【问题描述】:

当我尝试启动应用程序时,出现如下构建错误。无法启动任何应用程序。使用 XCode 4.6。

    dyld: Symbol not found: _audit_token_to_egid  Referenced from: 
/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfigurati  Expected in: 
/Users/easwar/Softwares/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Develo
per/SDKs/iPhoneSimulator6.1.sdk/usr/lib/libbsm.0.dyl in 
/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguratio2014-06-
08 20:26:20.127 ibtoold[2696:507] Init failed: Error Domain=IBMessageChannelErrorDomain Code=1 
"The operation couldn’t be completed. (IBMessageChannelErrorDomain error 1.)"2014-06-08 
20:26:20.128 ibtoold[2696:507] [MT] DVTAssertions: Warning in 
/SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-
2083/IBPlugin/Utilities/IBObjectMarshalling.m:309Details:  IBAttachToCocoaTouchTool() failed: 
Error Domain=com.apple.InterfaceBuilder Code=-1 "Interface Builder encountered an error 
communicating with the ios Simulator." UserInfo=0x4011b2080 NSUnderlyingError=0x400a26de0 
"The operation couldn’t be completed. (IBMessageChannelErrorDomain error 1.)", 
NSLocalizedDescription=Interface Builder encountered an error communicating with the iOS 
Simulator., NSLocalizedRecoverySuggestion=Please check Console.app for crash reports for 
"Interface Builder Cocoa Touch Tool" for further information., 
NSLocalizedFailureReason="Interface Builder Cocoa Touch Tool" (2697) failed to launch and 
exited with status (null), signal 5.Function: id<IBCocoaTouchTool> 
IBAttachToCocoaTouchToolFailingGracefully(IBCocoaTouchTargetRuntime *, NSError **)Thread:   
<NSThread: 0x400409be0>name = (null), num = 1Please file a bug at http://bugreport.apple.com 
with this warning message and any useful information you can provide.2014-06-08 20:26:20.182 
ibtoold[2696:507] [MT] DVTAssertions: ASSERTION FAILURE in 
/SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-
\2083/IBPlugin/Utilities/IBObjectMarshalling.m:39Details:  Failed to launch cocoa touch tool: 
Error Domain=com.apple.InterfaceBuilder Code=-1 "Interface Builder encountered an error 
communicating with the iOS Simulator." UserInfo=0x4011b2080 NSUnderlyingError=0x400a26de0 
"The operation couldn’t be completed. (IBMessageChannelErrorDomain error 1.)", 
NSLocalizedDescription=Interface Builder encountered an error communicating with the iOS 
Simulator., NSLocalizedRecoverySuggestion=Please check Console.app for crash reports for 
"Interface Builder Cocoa Touch Tool" for further information., 
NSLocalizedFailureReason="Interface Builder Cocoa Touch Tool" (2697) failed to launch and 
exited with status (null), signal 5.Object:   <NSThread: 0x400409be0>Method:   -
cocoaTouchToolForTargetRuntime:Thread:   <NSThread: 0x400409be0>name = (null), num = 1Hints: 
NoneBacktrace:  0  0x0000000100c6d6b3 -[DVTAssertionHandler 
handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DVTFoundatio  1  
0x0000000100c6d4e4 _DVTAssertionFailureHandler (in DVTFoundatio  2  0x00000001051510c6 (in 
IDEInterfaceBuilderCocoaTouchIntegratio  3  0x00000001051c49fa (in 
IDEInterfaceBuilderCocoaTouchIntegratio  4  0x00000001051c499f (in 
IDEInterfaceBuilderCocoaTouchIntegratio  5  0x00007fff85c0028d _dispatch_client_callout (in 
libdispatch.dyli  6  0x00007fff85c001fc dispatch_once_f (in libdispatch.dyli  7  
0x00000001051c4952 (in IDEInterfaceBuilderCocoaTouchIntegratio  8  0x00000001051c23ff (in 
IDEInterfaceBuilderCocoaTouchIntegratio  9  0x00000001051c2378 (in 
IDEInterfaceBuilderCocoaTouchIntegratio 10  0x00000001051c2528 (in 
IDEInterfaceBuilderCocoaTouchIntegration 11  0x00000001051c4e2e (in 
IDEInterfaceBuilderCocoaTouchIntegration 12  0x0000000105162b4f (in \IDEInterfaceBuilderCocoaTouchIntegration 13  0x000000010515bddb (inIDEInterfaceBuilderCocoaTouchIntegration 14  0x00000001004120ad __51-[IBDocumentUnarchiver 
unarchiveObjectFromElement:]_block_invoke (in IDEInterfaceBuilderKit 15  0x0000000100410f22 -
[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit 16  
0x0000000100411f03 -[IBDocumentUnarchiver unarchiveObjectFromElement:] (in 
IDEInterfaceBuilderKit 17  0x0000000100412691 __50-[IBDocumentUnarchiver 
unarchiveArrayFromElement:]_block_invoke (in IDEInterfaceBuilderKit 18  0x0000000100410f22 -
[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit 19  
0x0000000100412512 -[IBDocumentUnarchiver unarchiveArrayFromElement:] (in 
IDEInterfaceBuilderKit 20  0x0000000100270b47 -[NSView(IBDocumentArchivingGenerator) 
unarchiveWithDocumentUnarchiver:] (in IDEInterfaceBuilderKit 21  0x0000000105162b38 (in 
IDEInterfaceBuilderCocoaTouchIntegration 22  0x00000001004120ad __51-[IBDocumentUnarchiver 
unarchiveObjectFromElement:]_block_invoke (in IDEInterfaceBuilderKit 23  0x0000000100410f22 -
[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit 24  
0x0000000100411f03 -[IBDocumentUnarchiver unarchiveObjectFromElement:] (in 
IDEInterfaceBuilderKit 25  0x0000000105163478 (in IDEInterfaceBuilderCocoaTouchIntegration 26  
0x00000001004120ad __51-[IBDocumentUnarchiver unarchiveObjectFromElement:]_block_invoke (in 
IDEInterfaceBuilderKit 27  0x0000000100410f22 -[IBDocumentUnarchiver 
recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit 28  0x0000000100411f03 -
[IBDocumentUnarchiver unarchiveObjectFromElement:] (in IDEInterfaceBuilderKit 29  
0x0000000100412691 __50-[IBDocumentUnarchiver unarchiveArrayFromElement:]_block_invoke (in 
IDEInterfaceBuilderKit 30  0x0000000100410f22 -[IBDocumentUnarchiver 
recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit 31  0x0000000100412512 -
[IBDocumentUnarchiver unarchiveArrayFromElement:] (in IDEInterfaceBuilderKit 32  
0x0000000105217e31 (in IDEInterfaceBuilderCocoaTouchIntegration 33  0x0000000100410f22 -
[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit 34  
0x000000010041482c -[IBDocumentUnarchiverGroupMember(unarchiveContentWithBlock) 
unarchiveContentWithBlock:] (in IDEInterfaceBuilderKit 35  0x0000000105217d1d (in 
IDEInterfaceBuilderCocoaTouchIntegration 36  0x000000010041373c -[IBDocumentUnarchiver 
enumerateGroupMembers:] (in IDEInterfaceBuilderKit 37  0x0000000105217c5a (in 
IDEInterfaceBuilderCocoaTouchIntegration 38  0x0000000100410f22 -[IBDocumentUnarchiver 
recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit 39  0x000000010041355d -[IBDocumentUnarchiver enterGroupWithName:optionalKey:usingBlock:] (in IDEInterfaceBuilderKit 40  0x0000000105217bd9 (in IDEInterfaceBuilderCocoaTouchIntegration 41  0x000000010027f049 -[IBDocument unarchiveDocument:] (in IDEInterfaceBuilderKit 42  0x0000000105218203 (in IDEInterfaceBuilderCocoaTouchIntegration 43  0x0000000100410f22 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit 44  0x00000001004110f6 -[IBDocumentUnarchiver unarchiveDocument:] (in IDEInterfaceBuilderKit 45  0x0000000100279cfb __47-[IBDocument readFromFileWrapper:ofType:error:]_block_invoke (in IDEInterfaceBuilderKit 46  0x000000010029cea4 -[IBDocument runBlockInNewArbitrationStackEntryWithBehavior:block:] (in IDEInterfaceBuilderKit 47  0x0000000100279b14 -[IBDocument readFromFileWrapper:ofType:error:] (in IDEInterfaceBuilderKit 48  0x0000000105174019 (in IDEInterfaceBuilderCocoaTouchIntegration 49  0x000000010521582c (in IDEInterfaceBuilderCocoaTouchIntegration 50  0x0000000105174094 (in IDEInterfaceBuilderCocoaTouchIntegration 51  0x00007fff8f249098 -[NSDocument readFromURL:ofType:error:] (in AppKit 52  0x00000001002742d1 __39-[IBDocument readFromURL:ofType:error:]_block_invoke (in IDEInterfaceBuilderKit 53  0x0000000100296f9a -[IBDocument invokeWithUndoSuppressed:] (in IDEInterfaceBuilderKit 54  0x000000010027408d -[IBDocument readFromURL:ofType:error:] (in IDEInterfaceBuilderKit 55  0x0000000100170170 (in ibtoold 56  0x000000010016c50f (in ibtoold 57  0x000000010016b792 (in ibtoold 58  0x000000010016b640 (in ibtoold 59  0x0000000100177f5d (in ibtoold 60  0x000000010016b1a2 (in ibtoold 61  0x000000010016f2ad (in ibtoold 62  0x0000000100169f74 (in ibtooldCommand /Users/easwar/Softwares/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 255

如果您有任何想法,请提出建议?

提前谢谢..

【问题讨论】:

***.com/a/6347731/1378447 【参考方案1】:

我认为您可能需要链接到 系统配置 框架。

我主要是在猜测,这是我的锻炼

在 Google 上搜索了 audit_token_to_egid 和 found 源代码中对 SCNetworkConnection 的引用。 SCNetworkConnection系统配置的一部分。

https://developer.apple.com/library/mac/documentation/networking/Reference/SCNetworkConnection/Reference/reference.html

【讨论】:

怎么做,你能解释一下吗? @EaswaramoorthyK 阅读:developer.apple.com/library/ios/recipes/… 实际上,我的所有应用程序都收到此错误,即使是全新的应用程序也是如此。全新的应用程序默认包含 CoreGraphics、Foundation 和 UIKit 框架。我在这里错过了什么吗?我现在应该添加什么。请推荐? @EaswaramoorthyK 嗯,这看起来像是系统损坏。您应该重新安装 OSX。 你确定吗?重新安装是唯一的选择吗?你有什么解决办法吗?

以上是关于XCode 4.6 - 由于构建错误而无法启动应用程序?的主要内容,如果未能解决你的问题,请参考以下文章

Xcode 更新到 4.6 后应用程序在设备上崩溃

iOS - 无法在设备上构建,但在 Xcode 4.6 上构建模拟器

Xcode 11 GM-设备启动后应用程序崩溃由于信号9而终止

从终端打开iPhone应用程序

iOS - Xcode 错误:由于系统完整性保护而无法附加到进程

无法让 RestKit 在 Xcode 4.6 中工作