Ld: library not found for -lPayPalMobile ios

I am working with xcode 6.1 on PayPal integration.

I am getting the following error every time I open the project.

ld: no library found for -lPayPalMobile

clang: error: linker command worked with exit code 1 (use -v to see Call)

every time I need to remove the library search path value and remove the link in the paypal folder and re-import it into the project.

What is the problem, I don't know, please tell me what to do?

Edited

one more thing: if the project name is "This is a test" then what's the difference? because I see in the search path of the library that in the first line "This" only "is" in the second line , there is also in the last (ie the 3rd line) "test" .

Thank.

+3


source to share


3 answers


Follow below,

(1) Add static library to your project package.

(2) Add it to "link binary with libraries"

You need to go to your target -> build phase -> binary link with libraries. as shown in the picture below.enter image description here



(3) Provide the correct header search path for your linked library. those. ($ PROJECT_DIR) / Your path.

You can also read the steps given in the GitHub link at PayPal which gives you the right direction.

Feel free to ask if you need further help in this regard.

+2


source


As @Anuj said it might be an issue related to the ways to search the library . Cocoa Pods sometimes gets a mess when updating it or reinstalling it if you have it or not in Source Control.

I solved this problem right now by adding this flag to Library Search Paths :



$(inherited)

      

Hope this helps you

+1


source


These are usually header or library routes. Better to use CocoaPods to manage project dependencies. CocoaPods is a dependency manager for Objective-C projects. It has thousands of libraries and can help you scale your projects elegantly. You can import any static library using a simple Podfile and command line.

Once you start using CocoaPods, you don't have to worry about finding headers or libraries. PayPal also has a spec in the CocoaPods Spec repository.

0


source







All Articles