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
Library from pods not found #4248
Comments
I have exactly the same problem as yours (Xcode7), but even when I set |
Btw, another point I would like to mention. @alaaghribi don't switch the flags per pod target. Switch the flag per whole Pod project. |
@OlegAnghelov hm, this works just fine with me with Xcode 6.4 once I clear the non-standard Basically, both your project and the Pods project need to have the same setting for this, otherwise some architectures will be missing. If you want a custom setting in your project, you'll have to change it as well in Pods project. |
@neonichu |
It's not a "hacky way" to use Xcode defaults. As I said above, this cannot work if you use different settings for both projects involved — if you want to use a non-standard setting in your project, you have to change the Pods project's setting as well. If you want to avoid doing it manually, you can use a post-install hook. |
Then why all other projects work fine without these "not hacky way"? What makes my project so special that it doesn't compille without changing this settings? |
You have changed the setting in your project. |
I just created a new project, and the debug is set to yes by default. Another problem is that your solution just doesn't work. Hey, sorry if I sound harsh, I really don't mean so, cause I really appreciate your time that you spend right now digging into someone's else problems. |
@OlegAnghelov as @neonichu has said, the issue is coming from you changing the build setting. If you really wish to change that build setting, you'll also need to use a post-install hook in your podfile to mirror that change in the pods project. |
@segiddins So which setting do you call "Standard"? If I misunderstood which build settings are you talking about, please point that out. Thanks in advance! |
You're saying this only happens when you've changed the |
Thanks again for bearing with me :) No. |
BTW, the easiest way to see if you got a non-default setting is that it will be bold in the Build Settings view. You can go back to the default by hitting delete while you have it selected. (Unfortunately, some settings are bold in the project settings by default, because they actually get changed by Xcode itself during project creation, but in the grand scheme of things, this is true :) Especially for the target settings, which are the most interesting.) |
@orta @neonichu to all: So we got all our projects finally working well... |
Ah, I totally get the confusion now — personally, I almost never bother with the project build settings but go straight to the targets :) |
Which is interesting, cause I tend to go the opposite direction. Settings only at project level, then if needed at the target level. |
Considering this experience - does it make sense to think on some pods improvements? Or this whole issue is pure developer-fault-only? |
I'd like to echo @OlegAnghelov 's question. There seems to be a problem with out of the box behavior here. I just created a new new project, added a couple of pods and it wouldn't link until I
Is this a bug, or some configuration setting missing from the Podfile? A bug in a podspec? |
@jpaas Did you change the |
@neonichu I only changed the settings on the Pods project. No target changes. |
@jpaas hard to say what is happening then without more information. If you think it is a bug, you should open a new issue, with the information listed in our contribution guidelines, so that we can debug the issue. |
Will do. Thanks @neonichu |
#4725 opened |
Im also having this problem and it is very frustrating. I tried everything I found on stackoverflow and none helped. |
I also have this issue but the Active Architectures solution didn't work for me. See http://stackoverflow.com/questions/34792596/ld-library-not-found-for-lreact |
I am having the same problem. My old target works fine. I tried to create a new target and got this error on simulator but it's working on device. After playing with it for hours, it still doesn't work. What's worse, I reverted all my changes but it's broken on both my new and old targets, both on device and simulator. Very frustrating! |
A solution I found was removing the broad Pods frameworks from my Target's 'Link Binary With Libraries' and adding the actual frameworks I wanted (listed in my workspace, installed thru pods) |
My solution was to set "Per-configuration Build Products Path" to |
thank you |
I tried all settings mentioned above but still no luck. Has anybody resolved it yet,would be helpful if can share the solution. |
This problem happened to me again and my solution this time was that I had removed a debug configuration from the project file. I had to re-add it using git |
Well, I had exactly the same issue and it gets more frustrating with each appearance. So I've managed to finally build the project after:
|
I hate CocoaPods |
In my case, I found both MyFramework is already a binary. Why |
Hi guys!
First of all thank for the great work you are doing, it's really huge for the whole community, we really appreciate that :)
Now regarding to the issue...
It's been reproducing since December 2014, so the version of Xcode and pod themselves varied through time, so the version of Xcode and pods doesn't really matter.
I tried to raise an issue last time, here, but since I wasn't able to give a sample project that reproduces the issue, I didn't get the solution I tried to ask for.
But today I am able to provide you a sample project, so you can see what I meant back then.
Actual problem
After the project was cloned, or after some changes in pods were made (whether new pods added or old ones updated), each time it was saying there is a compile time error, smth like
And it wasn't AFNetworking fault, if it was removed, then any other would scream about the same.
The pseudo-solution
I didn't find in the internet that somebody would have the same problem. So I found the solution myself:
Build Settings
Build Active Architecture Only
(which has YES for Debug), select NOEvery time doing so is very frustrating.
Reproducing steps with the sample project
I was not able to reproduce the bug by creating a new project.
So I took our project, that was using around 30 pods, 6 configurations, 6 storyboards, 1 target, and around 30 LOCs, and deleted everything unrelated to the pod issue, also renaming the targets and the project itself.
The main point about it - is that it still has the problem. If anybody would clone it, run pod install and build it, it will show the compile error.
You can find the almost-empty project here:
https://github.com/OlegAnghelov/Chain
Please, take a look on it, try to clone and build it yourself, and help us get rid of this annoying problem... If you need any additional information, just let me know, I will get everything you need :)
Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: