dyld: Library not loaded: @executable_path/../Frameworks/

hunterp picture hunterp · May 12, 2015 · Viewed 9.7k times · Source

Error:

dyld: Library not loaded: @executable_path/../Frameworks/n.framework/n Referenced from: /Users/hunterp/Library/Developer/CoreSimulator/Devices//data/Containers/Bundle/Application//Demo.app/Demo Reason: image not found

I followed every answer in this stackoverflow question: iOS app with framework crashed on device, dyld: Library not loaded, Xcode 6 Beta

AND heres my build settings: enter image description here

Answer

James Webster picture James Webster · May 18, 2015

I suspect that there is something else wrong in your build settings as your error message contains extraneous slashes between directories

/Users/hunterp/Library/Developer/CoreSimulator/Devices//data/Containers/Bundle/Application//Demo.app/Demo Reason: image not found
                                                      ^^                                  ^^

(which the syntax highlighting nicely points out when I format as code ;))

When searching for the framework, it's possible that when it goes up a directory (with ..) it's parsing one of those //s not as you expect.

I'd check your header, framework and library search paths for entries that contain slashes where they are not needed, especially if they reference $(BUILDDIR)/1 or similar


1. I can't remember the actual environment variables