The six pits that iOS development encounters--the solution to compile a library not found for-lpods problem when using Cocopods to manage third-party libraries

Source: Internet
Author: User

In the project sometimes encounter library not found For-lpods (here ipods refers to your specific third party libraries) problem

The reason for this error is that Xcode cannot find the library at compile time, resulting in the project not compiling!

Here are a few workarounds:

The first type:

    1. A) Search from the "Library" from the Target Settings view and double-click to inspect the value ofLibrary Search Paths
    2. b) There is the values listed $(inherited) and $(PROJECT_DIR)/Pods/build/Debug-iphoneos . Delete the latter.
    3. c) do a full clean, build & Run
    4. d) Run pod install again. Notice that the entry are not restored.

The second type:

    • Go to Product > Edit Scheme
    • Click on Build
    • ADD Pods the static library, and make sure it's at the top of the list
    • Clean and build again

The third type:

    • If that's doesn ' t work, verify the source for the spec is trying to include have been pulled from GitHub. Do this by looking in/pods/. If It is empty (it should isn't being), verify that the ~/.cocoapods/master//.podspec have the correct git hub URL in it.

The fourth type:

If still doesn ' t work, check your XCode build locations settings. Go to Preferences, Locations, Derived Data, advanced and set build location to ' Relative to Workspace '.

The fifth type: (more commonly used online solutions)

Get the folder path where the library file is located, add to Target's build settings interface

Locate the library search paths, and then add it!

The sixth kind: (feeling more helpless method)

Re-use the Pod Update method to update all third parties (I didn't succeed anyway, but someone on the internet has been successful)

The seventh type:

I ' ve found that is $(inherited) missing from my other Linker Flags build setting.

Applying this option fixed a missing the library issue I was seeing.

The six-hole in the development of iOS-when you use Cocopods to manage third-party libraries, compile a workaround for the library not found For-lpods problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.