-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Linker Error : Library not found #615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From the error, it sounds like the problem was here. Maybe double check that it was added to the right target? |
Thanks, I'm trying to run Colin Eberhardt's tutorial from here: http://www.raywenderlich.com/62699/reactivecocoa-tutorial-pt1 but without the Cocoapods... Here's what I've got... |
Are you getting the |
I don't think it makes it that far in the build process. It's confusing me. So I ran an experiment to verify that the script was indeed executing. I removed the library, got rid of the input file setting for the script, and replaced the copy-frameworks with a simple echo to see if the script ran (checking View:Navigators:Reports Navigator). Simple script, one line - echo "Script ran". Built and ran fine, and the echo shows up on the report navigator. (I thought that maybe my bin/sh got screwed up some how, but alas, no...) Then I put everything back in, the library, the input file and added a 2nd line to the script (copy frameworks), and left the echo in at line 1, so now I have a simple 2 line script. Cleaned. When I tried to build I almost immediately got the framework not found abort and in the Report Navigator, there is no echo statement. (So I am assuming she didn't make it that far into the build) This is the freshest version of xCode under IOS 9. I'm a little perplexed. |
What is the value of |
FRAMEWORK_SEARCH_PATHS = |
How about if you add |
This is not the case for at least Xcode 7 beta 3, that might be an Xcode bug. 😲 |
Added $(SRCROOT)/Carthage/Build/iOS to FRAMEWORK_SEARCH_PATHS Now she compiles but I get:
As an aside, over the night I completely de-installed xCode Beta-3, fried developer directories, etc., and re-downloaded and installed Version 7.0 beta 3 (7A152u. Also ran xCode : Open developer tool : simulator to make sure was talking to the proper simulator instance. Still quite perplexed... |
Is there the EDITED: You should also add |
@wm-j-ray I've successfully compiled the starter project with the way in my latest comment. Could you please check that? |
The starter project from here?
I made the change per your comment and I'm still getting the not loaded error. (I feel like a #@! Xcode noobie). Can you zip up that project and email it so I can finally see where I'm screwing up? |
I was having the same issue. Seems that drag & dropping the frameworks from carthage was not also adding the |
Confirmed. I want to thank all who helped out on this. I think we can close this one out. |
Thanks for helping out on this, @ikesyo! ✨ |
I am facing the same issue "dyld: Library not loaded: @rpath/AlgoliaSearch.framework/AlgoliaSearch" . I am using xcode7.3, frameworks search path is et to = |
Bug: 'Embed Frameworks' is missing from Build Phase Fix: Add a new 'Copy Files'Build Phase Carthage/Carthage#615 (comment)
My 2 cents: Depending on where you have the Carthage directory relative to workspace/project etc. you might need to tweak the suggested Framework Search Path to (e.g.) |
I just wanted to point out that there are two stupid mistakes I have made that resulted in this error, in case it helps anyone that comes across this thread.
|
My mistake: The |
IOS 9 Target, Xcode beta 3 Build: 7A152u, simple Cartfile:
Library builds fine in Carthage/Build/IOS -> ReactiveCocoa.framework which is dragged and dropped into Target : Link With Libraries
RunScript:
InputFiles:
Yields This:
Question: Any idea where I'm messing up?
The text was updated successfully, but these errors were encountered: