找不到 -lPods 的库 [英] library not found for -lPods

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

问题描述

我在归档项目时遇到错误.这是我的环境.

I got an error when archiving a project. This is my environment.

  • Mac OS Lion
  • Xcode 4.3.1
  • iOS SDK 5.1

项目部署目标是:

IPHONEOS_DEPLOYMENT_TARGET 3.2

错误显示:

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

我猜 Pods 是我用来管理 XCode 项目依赖项的 CocoaPods.https://github.com/CocoaPods/CocoaPods

I guess Pods is CocoaPods that I used to manage XCode project dependencies. https://github.com/CocoaPods/CocoaPods

这是我的 Podfile

This is my Podfile

platform :ios  
dependency 'libPusher', '1.1'

我不确定错误是什么意思?

I am not sure what the error means?

推荐答案

我在 Podfile 中使用分离了应用程序和测试目标

I separated the app and the test targets in the Podfile by using

target :App do
    …
end

target :AppTests do
    …
end

这导致了两个新产品 libPods-App.alibPods-AppTests.a,它们分别制作了之前的产品 libPods.aem> 过时了.我不得不从两个目标的构建阶段配置的链接二进制与库部分中删除此产品.

This resulted in two new products libPods-App.a and libPods-AppTests.a, respectively and they made the previous product libPods.a obsolete. I had to remove this product from the Link Binary With Libraries Section of the Build Phases configuration of both targets.

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

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