xcode dyld:库未加载原因:找不到图像

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9530215/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:30:00  来源:igfitidea点击:

dyld: Library not loaded reason: image not found

iphoneobjective-cxcode

提问by TheLearner

I have just discovered that my app doesn't run in 4.3 even though the deployment target is set to 4.3.

我刚刚发现即使部署目标设置为 4.3,我的应用程序也无法在 4.3 中运行。

I get the following error, any ideas?

我收到以下错误,有什么想法吗?

dyld: Library not loaded: /System/Library/Frameworks/CoreImage.framework/CoreImage Referenced from: /Users/me/Library/Application Support/iPhone Simulator/4.3.2/Applications/E8046B99-C01A-4F62-A875-1261367763A5/MyApp.app/MyApp Reason: image not found

dyld:库未加载:/System/Library/Frameworks/CoreImage.framework/CoreImage 引用自:/Users/me/Library/Application Support/iPhone Simulator/4.3.2/Applications/E8046B99-C01A-4F62-A875-1261367763A5/ MyApp.app/MyApp 原因:找不到图片

采纳答案by Antonio MG

Are you sure that CoreImage is avalaible in 4.3.2?

您确定 CoreImage 在 4.3.2 中可用吗?

Check this:

检查这个:

https://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/CoreImaging/ci_intro/ci_intro.html

https://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/CoreImaging/ci_intro/ci_intro.html

"Core Image is an image processing technology built into Mac OS X v10.4 and iOS 5.0 ..."

“Core Image 是一种内置于 Mac OS X v10.4 和 iOS 5.0 中的图像处理技术……”

回答by Amit

In the target's build phases - > Link binaries with libraries set the relevant framework (CoreImage.framework in your case) to "Optional" instead of "Required".

在目标的构建阶段 - > 链接二进制文件与库将相关框架(在您的情况下为 CoreImage.framework)设置为“可选”而不是“必需”。

回答by hburde

CoreImage is iOS 5 and above. You need to set the development target to iOS 5 and add CoreImage - link binary with libraries (CoreImage Framework).

CoreImage 是 iOS 5 及更高版本。您需要将开发目标设置为 iOS 5 并添加 CoreImage - 链接二进制与库(CoreImage 框架)。