向后兼容应用程序中的 OS 4.0 功能

发布于 2024-09-16 17:23:14 字数 461 浏览 10 评论 0原文

我有一个 OS 4 应用程序,在我添加 eventkit 之前它与 3.x 完全兼容。如果它们位于 3.x 设备上,有没有办法可以忽略此功能?我有

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
...code
#endif

我的东西,但它似乎在初次启动时失败,我想这是由于 EventKit.framework 的链接所致。我遇到的唯一错误是超级描述性

Data Formatters temporarily unavailable, will re-try after a 'continue'. (Cannot call into the loader at present, it is locked.)

,如果我删除这个框架并注释掉我的 eventkit 代码,一切都会正常。是否没有办法阻止旧操作系统链接新框架?

I have an OS 4 app that was completely compatible with 3.x up until I added eventkit. Is there a way I can omit this feature if they are on a 3.x device? I have

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
...code
#endif

around my stuff but it seems to be failing on initial launch and I am thinking due to the linking of the EventKit.framework. The only error i am getting is the super descriptive

Data Formatters temporarily unavailable, will re-try after a 'continue'. (Cannot call into the loader at present, it is locked.)

and if i remove this framework and comment out my eventkit code, it all works fine. Is there no way to prevent the linking of newer frameworks for older OS'?

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

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

发布评论

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

评论(1

听不够的曲调 2024-09-23 17:23:14

您应该弱链接 EventKit。打开您的目标,在“链接库”下找到“EventKit”,并将其类型从“必需”更改为“弱”。

You should weak-link EventKit. Open your target, find EventKit under Linked Libraries, and change its type from Required to Weak.

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