CocoaPods:library not found for -lPods

This is my first shot to write a blog in English. Enjoy! ;)

CocoaPods is a popular way to control iOS projects‘ dependency. And it‘s easy to use.

If you got everything configured right for cocoapods, you can just integrate all dependency in your project with only one command: $ pod update.

As this blog not on details of how to configure and use cocoapods, we just focus on how to deal with a easy and sometimes confusing problem as it‘s already in the title of this blog.

ld: library not found for -lPods

The error detail is:

ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)

but the first line is the point.

You first use Cocoapods, but you take some time and effort to download and configure it. When you think it workds, but "BOOM" an error occured. It makes you really unhappy! Dude, I know how that feels, cuz I‘ve been there.

But when you find out what‘s going on there, you would just give it a smile! It‘s an easy one. You clicked the project file to open the cocoapods-handle-dependency project as what you always do. This is the problem! YEAH!!! What you got do to open the project correctly is to "CLICK THE WORKSPACE FILE".

So, my man. After you got cocoapods configration done, click the workspace file to open up your project! Then you will see how the project is organized:

For now, the proejct is a secret. :)

Hope this helps you!

时间: 2024-10-15 12:26:39

CocoaPods:library not found for -lPods的相关文章

iOS开发遇到的坑之六--使用cocopods管理第三方库时,编译出现Library not found for -lPods问题的解决方法

在项目中有时候会遇到Library not found for -lPods(这里的IPods指的是你具体的第三方库)的问题 出现这个错误的原因是:xcode在编译的时候找不到这个库,从而导致项目无法编译! 这里给出几种解决办法: 第一种: a) Search from 'Library' from the Target Settings view and double-click to inspect the value of Library Search Paths b) There are

iOS开发遇到的坑之六--使用cocopods管理第三方库时,编译出现Library not found for -lPods问题的解决办法

在项目中有时候会遇到Library not found for -lPods(这里的IPods指的是你具体的第三方库)的问题 出现这个错误的原因是:xcode在编译的时候找不到这个库,从而导致项目无法编译! 这里给出几种解决办法: 第一种: Search from 'Library' from the Target Settings view and double-click to inspect the value of Library Search Paths There are two v

使cocopods管理开源库编译出现Library not found for -lPods问题的解

If Xcode complains when linking, e.g. Library not found for -lPods, it doesn't detect the implicit dependencies: 1.Go to Product > Edit Scheme 2.Click on Build 3.Add the Pods static library, and make sure it's at the top of the list 4.Clean and build

错误 ld: library not found for -lPods

ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) 在将工程放到git上管理时 然后克隆下来 再打开工程可能会出现上面的问题解决办法: 在 Build Phase 下的 Link Binary With Libraries 中删除  "libPods.a" 文件 就行了

xcode在Archive生成安装包时遇到ld: library not found for -lPods

这个问题很容困扰,一般有以下几个方案 进入target的 Build Phases- Link binary Library,找到libPods.a,如果是红色的,删除,即可 其他解决方案 Build Setting > Other Linker Flag: Try to change wherever $(TARGET_BUILD_DIR) to $(BUILT_PRODUCTS_DIR).

xcode于Archive当产生安装包遇到ld: library not found for -lPods

此问题是由能力很困扰,通常有以下几个方案 进target的 Build Phases- Link binary Library.到场libPods.a,假设是红.删,能够 其他解决方案 Build Setting > Other Linker Flag: Try to change wherever $(TARGET_BUILD_DIR) to $(BUILT_PRODUCTS_DIR). 版权声明:本文博主原创文章,博客,未经同意不得转载.

ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation)

当用第三方库管理工具遇到这样的bug时,请确保Set Build Active Architectures Only在cocoapods和项目中设置为一样的. Had this problem as well. Something was wrong with my CocoaPods installation; No pods other than KIF were installing properly. I followed the comments on this thread to b

iOS开发~CocoaPods使用详细说明

一.概要 iOS开发时,项目中会引用许多第三方库,CocoaPods(https://github.com/CocoaPods/CocoaPods)可以用来方便的统一管理这些第三方库(从一个坑出来,又进了另一个坑而已--). 二.安装 由于网上的教程基本都大同小异,但细节之处还不是很完善,所以借机会在这里补充下: 注:要使用CocoaPods,那就要下载安装它,而下载安装CocoaPods需要Ruby环境 1.Ruby环境搭建 当前安装环境为Mac mini 10.8.5.Mac  OS本身自带

iOS cocoapods升级及问题

安装 安装RubyCocoaPods基于Ruby语言开发而成,因此安装CocoaPods前需要安装Ruby环境.幸运的是Mac系统默认自带Ruby环境,如果没有请自行查找安装.检测是否安装Ruby:$ gem -v2.0.14 安装则会提示当前Ruby版本.gem介绍:gem是一个管理Ruby库和程序的标准包,它通过Ruby Gem(如 http://rubygems.org/ )源来查找.安装.升级和卸载软件包,非常的便捷. 更换gem源因为国内网络的问题导致gem源间歇性中断,原因你懂的.因