简体   繁体   English

Cocoapods:ld:-lBolts找不到库

[英]Cocoapods : ld: library not found for -lBolts

I am using cocoapods in one of my projects and after I cleaned the derived data for my project I have started seeing this error 我在一个项目中使用了可可足类,在清除了项目的派生数据后,我开始看到此错误

ld: warning: directory not found for option '-L/Users/vishal/Library/Developer/Xcode/DerivedData/SensorLab-ctzyiyrpdclyjybpujriezgkckkn/Build/Products/Debug-iphoneos/Bolts'
ld: warning: directory not found for option '-L/Users/vishal/Library/Developer/Xcode/DerivedData/SensorLab-ctzyiyrpdclyjybpujriezgkckkn/Build/Products/Debug-iphoneos/DownPicker'
ld: warning: directory not found for option '-L/Users/vishal/Library/Developer/Xcode/DerivedData/SensorLab-ctzyiyrpdclyjybpujriezgkckkn/Build/Products/Debug-iphoneos/MBProgressHUD'
ld: warning: directory not found for option '-L/Users/vishal/Library/Developer/Xcode/DerivedData/SensorLab-ctzyiyrpdclyjybpujriezgkckkn/Build/Products/Debug-iphoneos/Parse'
ld: warning: directory not found for option '-L/Users/vishal/Library/Developer/Xcode/DerivedData/SensorLab-ctzyiyrpdclyjybpujriezgkckkn/Build/Products/Debug-iphoneos/SCLAlertView-Objective-C'
ld: library not found for -lBolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)

When I open up the Debug-iphoneos from Window > Projects I do not see any folders in there now. 当我从“ 窗口”>“项目”打开Debug-iphoneos时 ,我现在看不到其中的任何文件夹。 Since this problem started cropping up after cleaning derived data I do not really know what did I do which stopped generating those folders. 由于此问题在清除派生数据后开始出现,所以我真的不知道该怎么办,这会停止生成那些文件夹。

This is how it looks : 看起来是这样的: 在此处输入图片说明

This is kind of how it should look, I imagine (From a different project) 我想这是这样的样子(来自其他项目) 在此处输入图片说明

I have tried what was suggested here 我尝试了这里的建议

Cocoapods ld: library not found for -lPods-Projectname Cocoapods ld:-lPods-Projectname找不到库

Cocoapods ld: library not found for -lPods-ObjectiveSugar Cocoapods ld:-lPods-ObjectiveSugar找不到库

And a couple more things which I have tried but to no avail, I have faced my fair share of cocoapod niggles. 还有我尝试过但无济于事的另外两件事,我面对了可可脚步兄弟的应有尽有。 This seems beyond me. 这似乎超出了我。

EDIT: I have been doing some more tests with this, I realized that my pods are not even building ! 编辑:我已经对此进行了更多测试,我意识到我的豆荚甚至还没建好! When I clear derived data for any other project, it goes ahead and builds the Pods next time I try to build the project, but not in this project. 当我清除任何其他项目的派生数据时,它将继续并在下次尝试构建该项目时构建Pods,但不在此项目中。 What setting can wrong ? 什么设置会出错?

This is how the project looks right now : 这是该项目现在的外观: 在此处输入图片说明

Any help will be appreciated. 任何帮助将不胜感激。

Clean up cocoa pods and install them again. 清理可可豆荚并重新安装。 在此处输入图片说明

You can also use tool - https://github.com/CocoaPods/cocoapods-deintegrate 您还可以使用工具-https: //github.com/CocoaPods/cocoapods-deintegrate

Somehow the option of Find Implicit Dependencies got turned off in the build scheme. 在构建方案中以某种方式关闭了“ 查找隐式依赖项”选项。 SMH. SMH。 Hope this can help someone in the future. 希望这可以在将来对某人有所帮助。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM