coreImage iOS 4.3.3 崩溃
伙计们,我有 iOS 应用程序,它在 ios5.0 上运行良好,但在 4.3.3 上它崩溃了并将其写入控制台:
dyld: Library not loaded: /System/Library/Frameworks/CoreImage.framework/CoreImage
Referenced from: /Users/IvanTrufanov/Library/Application Support/iPhone Simulator/4.3.2/Applications/99C63A08-CC3E-49B7-A27D-1352D61C7C4F/habr.app/habr
Reason: image not found
你有什么想法吗?能有什么理由呢?
guys, I have iOS app, which running good on ios5.0, but on 4.3.3 it's crashing and writing this to console:
dyld: Library not loaded: /System/Library/Frameworks/CoreImage.framework/CoreImage
Referenced from: /Users/IvanTrufanov/Library/Application Support/iPhone Simulator/4.3.2/Applications/99C63A08-CC3E-49B7-A27D-1352D61C7C4F/habr.app/habr
Reason: image not found
Have you any ideas? What can be reason?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Core Image 仅适用于 iOS 5。
https ://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/CoreImaging/ci_intro/ci_intro.html
Core Image is only available with iOS 5.
https://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/CoreImaging/ci_intro/ci_intro.html
正如其他人指出的那样,CoreImage 需要 iOS 5+。但您仍然可以通过针对框架的弱链接在支持 iOS 4.3 及更低版本的应用程序中使用 CoreImage。
为此,请转到项目的构建阶段,找到“CoreImage.framework”引用并将可选/必需标志更改为可选。
当然,CoreImage API 在 iOS 5 之前不可用,因此您需要在进行任何框架调用之前检查操作系统版本。您可能会发现以下宏很方便:https://stackoverflow.com/a/5337804/82169
As others note CoreImage requires iOS 5+. But you can still use CoreImage in apps supporting iOS 4.3 and below by weak linking against the framework.
To do this go to your project's build phases, find the "CoreImage.framework" reference and change the optional/required flag to optional.
Of course the CoreImage API won't be available prior to iOS 5, so you'll want to check the OS version before making any framework calls. You might find the following macros handy: https://stackoverflow.com/a/5337804/82169