向后兼容应用程序中的 OS 4.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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该弱链接 EventKit。打开您的目标,在“链接库”下找到“EventKit”,并将其类型从“必需”更改为“弱”。
You should weak-link EventKit. Open your target, find EventKit under Linked Libraries, and change its type from Required to Weak.