Cocoa Pods错误ld:找不到-lPods的库 [英] Cocoa Pods Error ld: library not found for -lPods

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

问题描述

我从可可豆荚得到一个错误,我从来没有见过。我已经有它的几个依赖项工作很好。我最近添加了TestFlightSDK作为依赖关系通过pods,我无法归档项目。它构建正好对设备,但拒绝归档。是否有其他人遇到此问题?

I'm getting a error from cocoa pods that I've never seen before. I've had it working with several dependencies just fine. I recently added the TestFlightSDK as a dependency through pods and I'm unable to Archive the project. It builds just fine to devices but refuses to Archive. Has anyone else experienced this issue?

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

我的库搜索路径看起来像这样调试和发布):

My Library Search Paths looks like this (for both debug and release):

$(SRCROOT)  recursive
$(PODS_ROOT)  recursive
$(inherited)   recursive


推荐答案

为我工作)使用此帖子的一些建议

Ok so I found the answer (that worked for me) using some suggestions from this post

我实际上得到了一个不同的警告,我没有注意到。

I was actually getting a different Warning that I hadn't noticed.

Pods was rejected as an implicit dependency for 'libPods.a' because its
architectures 'armv7 armv7s' didn't contain all required architectures
'armv7 armv7s arm64'

这实际上与Pods目标没有正确的架构相关。它毕竟是一个xCode错误。在我的Pods目标我有所有正确的acrhitectures选择,armv7,armv7s和arm64。

It was actually related to the Pods target not having the correct architectures. It turned out to be a xCode bug after all. In my Pods Target I had all the correct acrhitectures selected, armv7, armv7s, and arm64.

解决方案


  1. 将cocoapod更新到支持64拱的最新版本。

  1. Update cocoapods to the newest version that supports 64 arch.

sudo gem update cocoapods


  • 删除所有有效的架构,

  • Delete all Valid Architectures and do a project clean (which fails alot..)

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

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