Cocoapod:为什么Xcode构建过程试图找到已经从我的项目中删除的库 [英] Cocoapod: Why Xcode build process try to find the library which has been already removed from my project

查看:124
本文介绍了Cocoapod:为什么Xcode构建过程试图找到已经从我的项目中删除的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

永远感谢您的所有知识。

Thank you always for all of your knowledge.

我已经在StackOverflow中检查了我的问题并发现了类似的问题,但没有具体找到我的案例。非常感谢如果你们中的一些人可以告诉我的情况。

I have checked my issue in StackOverflow and found similar issues but could not find my case specifically. Greatly appreciated If some of you could advise my situation.

我的环境;

xcode:版本6.0.1,
ios目标:IOS 8,
代码:OBjective-C

xcode: Version 6.0.1, ios target: IOS 8, code: OBjective-C

我通过My​​project.xcworkspace打开了我的项目。

I opened my project by Myproject.xcworkspace.

问题;

我用Cocoapod安装了一些库。这是podfile中的代码。

I used Cocoapod to install some libraries. Here was the code in podfile.

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '6.0'
pod 'SDWebImage', '~> 3.6'
pod 'AFNetworking', "~> 2.0"
pod 'KissXML'

然后在终端。

pod install

毕竟我知道我不需要其中的一些库,然后像下面那样修改podfile。

After all I knew I did not need some of these libraries, then modify podfile like below.

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '6.0'
pod 'SDWebImage', '~> 3.6'

然后在终端。

pod update

我发现AFNetworking和KissXML已从我的项目中删除。

I found AFNetworking and KissXML are removed from my project.

然而,当我在Xcode中执行Product-> Archive时,发生了以下错误。

However when I did Product->Archive in Xcode, the following error occurred.

ld:找不到-lPods-AFNetworking的库
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

ld:找不到-lPods-KissXML的库
clang:错误:链接器命令失败,退出代码为1(使用-v看到调用)

Just Run成功了但是Archive出现了这些错误。

Just Run went succeeded but Archive came up with those error.

为什么构建过程仍然试图找到已被删除的库?

Why build process still try to find libraries which has been already removed?

总是谢谢你。

推荐答案

打开项目构建设置,可能是其中有一些链接或其他库链接或库路径。你删除它。

open your project build setting ,may be there are some link or other library link or library path in it . Your remove it .

这篇关于Cocoapod:为什么Xcode构建过程试图找到已经从我的项目中删除的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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