iPad 通用二进制 - MessageUI.framework 问题

发布于 2024-09-16 13:06:09 字数 264 浏览 2 评论 0原文

我正在将我的 iPhone 应用程序转变为通用二进制文件。对于 MFMessageComposeViewController 类,一切正常接受。我选择了具有两个目标路线的单个项目。

当我运行 iPad Target 时,编译器会标记 MFMessageComposeViewController。显然,这是在 4.0 中引入的,但引用是在 iPhone 类中,而不是在 iPad 中。这是为什么?我错过了什么?

哦,MessageUI.framework 在两个目标中都是弱链接的。

I'm in the process of turning one of my iPhone apps into a universal binary. Everything works ok accept for the MFMessageComposeViewController Class. I went the single project with two targets route.

When I run the iPad Target, the compiler flags the MFMessageComposeViewController. Obviously, this was introduced in 4.0 but the reference is in the iPhone Classes, not the iPad. Why is this and what am I missing?

Oh, and the MessageUI.framework is weak-linked in both Targets.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

我做我的改变 2024-09-23 13:06:09

即使在 iPad 上运行,您也应该针对 4.0 SDK 进行构建。只要确保不要引用该类即可。

You should build against the 4.0 SDK even when running on iPad. Just make sure not to reference the class.

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