通用应用程序无法在 iPad 模拟器上运行
我有一个现有的 iPhone 应用程序,我正在尝试将其转换为适用于 iPhone 和 iPad 的通用应用程序。当我在 iPad 设备上运行时,一切似乎都工作正常,但当我尝试在 iPad 模拟器中运行时,出现以下运行时错误:
dyld: Symbol not found: _CFXMLNodeGetInfoPtr
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
我正在使用最新的 4.1 SDK 进行构建。我的项目设置设置为针对 iPhone/iPad 构建。我的部署目标设置为 iOS 3.1。我与 UIKit.framework 的联系很弱。
任何帮助将不胜感激。谢谢!
I have an existing iPhone app that I'm trying to convert into a universal app for both iPhone and iPad. Everything seems to work fine when I run it on an iPad device, but I get the following runtime error when I try to run in the iPad simulator:
dyld: Symbol not found: _CFXMLNodeGetInfoPtr
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
I am building using the latest 4.1 SDK. My project settings are set to build for iPhone/iPad. My deployment target is set to iOS 3.1. I have weakly linked to UIKit.framework.
Any help would be appreciated. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个盲目的尝试,但最初的 iPad 不是预装了 iOS 3.2 吗?
尝试将部署目标设置为该目标,然后重试。有更好的吗?
This is a shot in the dark, but didn't the original iPad ship with iOS 3.2?
Try setting your deployment target to that and try again. Any better?
我遇到了类似的问题,通过 https://gist.github.com/1267913 提供的信息解决了作者:github 用户 neilinglis,他说:
“这是模拟器的 SDK 错误。如果您禁用异常断点或继续执行它们,那么实际上一切都会正常工作。设备上一切正常。”
I had a similar problem which was solved by information provided at https://gist.github.com/1267913 by github user neilinglis, who said,
"It's an SDK bug with the Simulator. If you disable exception breakpoints or just keep going through them then it'll actually all work OK. Everything works fine on the device."