错误:ld:找不到带有CocoaPods的-lPods的库 [英] Error: ld: library not found for -lPods with CocoaPods

查看:314
本文介绍了错误:ld:找不到带有CocoaPods的-lPods的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

后,我安装DTCoreText( https://github.com/Cocoanetics/DTCoreText )用的CocoaPods我总是得到当错误我尝试运行模拟器或设备!

after i installed DTCoreText (https://github.com/Cocoanetics/DTCoreText) with Cocoapods i always get an error when i try to run the simulator or device!

ld: warning: directory not found for option '-L/Users/example/Desktop/ios/Pods/build/Release-iphoneos'
ld: warning: directory not found for option '-L/Users/example/Desktop/ios/Pods/build/Debug-iphoneos'
ld: library not found for -lPods-example
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

在我的Link Binary With Libraries中,libPods部分为红色:

in my "Link Binary With Libraries" the "libPods" Part is red:

以下是我的构建设置:

我项目的设置:

我的Pod的设置:

编辑:

我不确定问题是什么,但我解决它,当我删除了所有DTCoreText和的CocoaPods的东西,并再次reeinstalled一切!

I´m not exactly sure what was the Problem, but I solved it when i deleted all the DTCoreText and Cocoapods stuff and reeinstalled everything again!

推荐答案

建议尝试以下,即工作对我来说:

Suggest trying the following, that worked for me:

a)从目标设置视图中的库中搜索,然后双击以检查库搜索路径的值

a) Search from 'Library' from the Target Settings view and double-click to inspect the value of Library Search Paths

b)列出了两个值 $(继承) $(PROJECT_DIR)/荚/建造/调试-的iPhoneOS 。删除后者。

b) There are two values listed $(inherited) and $(PROJECT_DIR)/Pods/build/Debug-iphoneos. Delete the latter.

c)做一个完整的清洁,构建和放大运行

c) Do a full clean, build & run

d)再次运行 pod install 。请注意,该条目未恢复。

d) Run pod install again. Notice that the entry is not restored.

这篇关于错误:ld:找不到带有CocoaPods的-lPods的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆