如何在通用应用程序(iphone和ipad)中使用zbar sdk?
我正在创建通用应用程序(iPhone 和 iPad)。在我的应用程序中,我使用 ZBar SDK 进行条形码扫描。在 iPhone 中运行该应用程序时,它运行良好。但在 iPad 中,该应用程序无法打开。在控制台中它显示错误,
dyld:找不到符号:_CFXMLNodeGetInfoPtr 引用自:/System/Library/Frameworks/Security.framework/Versions/A/Security 预计在:/ios 4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation 在/System/Library/Frameworks/Security.framework/Versions/A/Security
请参考我有什么解决方案吗?
I am creating the universal application(iPhone and iPad). In my application, i used ZBar SDK for barcode scanning. While running the application in iPhone it's working fine. But in iPad the application is not opening. In console it shows the error,
dyld: Symbol not found: _CFXMLNodeGetInfoPtr
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /ios 4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
Please refer me is there any solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您仔细阅读错误消息,它表示它希望在特定框架 (Security.framework) 中找到符号 (
_CFXMLNodeGetInfoPtr
)。您是否将此框架正确添加到您的项目中?If you read your error message closely, it says it expected to find a symbol (
_CFXMLNodeGetInfoPtr
) in a particular framework (Security.framework). Did you add this framework to your project properly?您必须将这些系统框架添加到您的项目中:
You have to add these system frameworks to your project: