mergesort
mergesort

Reputation: 5197

Library not found with Cocoapods

I'm trying to integrate Flurry into my App and I keep getting the following error:

ld: library not found for -lFlurry_5.1.0

I am installing with Cocoapods (0.33.1)

Upvotes: 2

Views: 777

Answers (1)

ryumer
ryumer

Reputation: 536

There is a linker flag -lFlurry_5.1.0 added by pods to the project and it does not resolve.

The solution is to link against this library in your targets build phases as shown below. You can do this by clicking the '+' button below 'Link With Binary Libraries'. The library is located at (PROJECT_DIR)/Pods/FlurrySDK/Flurry/Flurry_5.1.0.a

After adding this, you need to remove -lFlurry_5.1.0 flag from 'Other Linker Flags' under 'Build Settings' tab for your target.

Below are some screenshots for these steps.

build phases after pod installation build phases after adding flurry library linker flags after pod installation linker flags after removing the flag

Upvotes: 4

Related Questions