Reputation: 15976
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:
Upvotes: 4
Views: 11918
Reputation: 10185
Try to select executable_path and press Delete
Also try the same with Library Search Paths and Header Search Paths
If you have 2 targets try to edit your pod file:
target :MainTarget, :exclusive => true do
link_with ['Target1']
pod 'SomePod'
end
target :SecondTarget, :exclusive => true do
link_with ['Target2']
pod 'SomePod'
end
and run in the terminal : pod update
Upvotes: 2
Reputation: 439
I think the error
dyld: Library not loaded: @executable_path/../Frameworks/n.framework/n ...
shows the Runpath Search Paths is set to be "@executable_path/../Frameworks".
Go to "Build Settings"->"Runpath Search Paths", delete "@executable_path/../Frameworks" if exists, then add "@executable_path/Frameworks".
Upvotes: 1
Reputation: 32066
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
Upvotes: 4