still dyld: Library not loaded

三世轮回 提交于 2019-11-29 06:40:30

Found out the solution to the problem. The problem was setting the added frameworks as required instead of optional

GO TO Project-> Targets-> Build Phases-> Link Binary with Libraries

There, set the status of added frameworks to Optional

This solved my problem.

It may happen because of framework compilation. I worked out it

App target -> Build Phases -> Embed Frameworks.

So mark copy only when installing on. Clean the project and run it!

Venk

You need to add this Framework to Xcode.

Right-click on "Frameworks" > Choose Add > Existing Frameworks Locate "AVFoundation" then choose Add.

If you want to add it manually, choose the other button and navigate to:

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/System/Library/Frameworks/AVFoundation.framework/

Replace the iPhone SDK version with whatever you are building against.

Perhaps also see this answer: Missing AVFoundation.framework

Also, sometimes you just need to close Xcode, then clean and rebuild.

also see dyld: Library not loaded: AVFoundation.framework Reason: image not found

I had the same problem. i keep all .dylib in system root directory usr/lib it working fine. At the run time .o file not get .dylib file path then it gives an error.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!