通用应用程序无法在 iPad 模拟器上运行

发布于 2024-09-19 12:46:27 字数 633 浏览 11 评论 0原文

我有一个现有的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

つ低調成傷 2024-09-26 12:46:27

这是一个盲目的尝试,但最初的 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?

离鸿 2024-09-26 12:46:27

我遇到了类似的问题,通过 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."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文