xcode 错误:找不到符号:___CFObjCIsCollectable

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11711893/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 01:04:00  来源:igfitidea点击:

Error: Symbol not found: ___CFObjCIsCollectable

iphoneobjective-ciosxcodesymbols

提问by user1483652

today I was working in xcode when this error showed up on start up of the app, whats wrong with my app?

今天我正在 xcode 中工作,当应用程序启动时出现此错误,我的应用程序有什么问题?

2012-07-29 19:29:58.682 Champagne Pop[10601:1b03] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: __CFObjCIsCollectable Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation in /System/Library/Frameworks/Security.framework/Versions/A/Security 2012-07-29 19:29:58.690 Champagne Pop[10601:1b03] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: _
_CFObjCIsCollectable Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation in /System/Library/Frameworks/Security.framework/Versions/A/Security 2012-07-29 19:29:58.703 Champagne Pop[10601:1b03] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: __CFObjCIsCollectable Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation in /System/Library/Frameworks/Security.framework/Versions/A/Security 2012-07-29 19:29:58.710 Champagne Pop[10601:1b03] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: _
_CFObjCIsCollectable Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation in /System/Library/Frameworks/Security.framework/Versions/A/Security

2012-07-29 19:29:58.682 Champagne Pop[10601:1b03] 加载/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn(System/Library)时出错/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262):找不到符号:__ CFObjCIsCollectable 引用自:/System/Library/Frameworks/Security.framework/Versions/A/Security
预期在:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation in /System/Library/Frameworks/Security .framework/Versions/A/Security 2012-07-29 19:29:58.690 Champagne Pop[10601:1b03] 加载/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/时出错AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): 未找到符号:_
_CFObjCIsCollectable 引用自:/System/Library/Security.框架/版本/A/安全
预期在:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation in /System/Library/Frameworks/Security .framework/Versions/A/Security 2012-07-29 19:29:58.703 Champagne Pop[10601:1b03] 加载/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/时出错AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: __ CFObjCIsCollectable Referenced from: /System/Library./Frameworks框架/版本/A/安全
预期在:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation in /System/Library/Frameworks/Security .framework/Versions/A/Security 2012-07-29 19:29:58.710 Champagne Pop[10601:1b03] 加载/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/时出错AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): 未找到符号:_
_CFObjCIsCollectable 引用自:/System/Library/Security.框架/版本/A/安全
预期在:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation in /System/Library/Frameworks/Security .framework/版本/A/安全

回答by torrey.lyons

As answered herethis is a bug in the iOS simulator but is not a problem when running on the actual device. This bug persists at least through Xcode 4.4.1 and the iOS 5.1 SDK.

正如这里所回答的这是 iOS 模拟器中的一个错误,但在实际设备上运行时不是问题。这个错误至少在 Xcode 4.4.1 和 iOS 5.1 SDK 中仍然存在。

回答by ardochhigh

Remove the debugger breakpoints & re-run. This worked for me. Apparently the problem is working in iOS6 and should also be fine on the device.

删除调试器断点并重新运行。这对我有用。显然该问题在 iOS6 中有效,并且在设备上也应该没问题。

回答by CReaTuS

Try add in your project a

尝试在您的项目中添加

Security.framework

安全框架

CoreFoundation.framework

CoreFoundation.framework

from Simulator folder

从模拟器文件夹

回答by Eric

Remove the debugger breakpoints & re-run. This worked for me. Apparently the problem is working in iOS6 and should also be fine on the device.

删除调试器断点并重新运行。这对我有用。显然该问题在 iOS6 中有效,并且在设备上也应该没问题。

This is my issue. Remove the breakpoint, that's OK.

这是我的问题。去掉断点,就OK了。