ld:框架未找到Pods [英] ld: framework not found Pods

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

问题描述

我正在尝试为我的IOS项目添加一个框架,但是当我构建时,我总是得到相同的消息:

I'm trying to add a framework to my IOS project but when I build I always got the same message :


ld:框架未找到Pods

ld: framework not found Pods

clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

clang: error: linker command failed with exit code 1 (use -v to see invocation)

我试图删除 Pods 目录,然后运行 pod install
我打开 .xcworkspace 就像它写在pod安装的日志中一样,我在xcode上清理项目然后尝试构建但它不会起作用..

I tried to remove my Pods directory and then run pod install I open the .xcworkspace like it is written in the logs on the pod install, I clean the project on xcode and then try to build but it won't works..

我的podfile如下所示:

My podfile looks like this :

xcodeproj '/Users/guillaume/project/Mobile/iOS/FoodPin/FoodPin.xcodeproj'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'SwiftHTTP', '~> 0.9.2'

我的xcode版本是 6.3.1

My version of xcode is 6.3.1

谢谢,

推荐答案

Project Navigator 在文件夹 Pods 我有一个 Pods.framework in那里是红色的。它也出现在链接框架和库中。我删除了两个引用,错误消失了。

In Project Navigator in the folder Pods I had a Pods.framework in there which was red. It was also present in Linked Frameworks and Libraries. I removed both references and the error disappeared.

TL; DR

删除 Pods.framework in:


  • 名为的文件夹

  • 链接的框架和库

  • Folder named Pods
  • Linked Frameworks and Libraries

这篇关于ld:框架未找到Pods的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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