Xcode中的Pod错误“Id:framework not found Pods” [英] Pod Error in Xcode "Id: framework not found Pods"

查看:2579
本文介绍了Xcode中的Pod错误“Id:framework not found Pods”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从一个bitbucket存储库中克隆一个项目,并得到一个错误 Id:未找到框架Pods clang:error:linker命令失败,退出代码1(使用-v查看调用) 当试图在工作区中运行Xcode项目时。这些是我遵循的步骤,如果任何人都可以让我知道我做错了什么,那就太棒了!

I am trying to clone a project from a bitbucket repository and am getting an error Id: framework not found Pods clang: error: linker command failed with exit code 1 (use -v to see invocation) when trying to run an Xcode project in workspace. These are the steps I have followed, if anyone could let me know what I am doing wrong, that would be great!


  1. git clone(链接到bitbucket)

  2. 将Xcode pods项目中的配置设置更改为 none
  3. 执行 pod install
  4. / li>
  5. 尝试在Xcode中构建并收到错误 Id:未找到框架Pods clang:error:linker命令失败,退出代码1(使用-v查看调用)

  1. git clone (link to bitbucket)
  2. changed the configuration settings in the Xcode pods project to none for both debug and release
  3. performed pod install
  4. opened Xcode workspace file
  5. tried to build in Xcode and received the error Id: framework not found Pods clang: error: linker command failed with exit code 1 (use -v to see invocation)

编辑以下是podfile:

Edit Here is the podfile:

# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'

target 'Oncarb' do
  pod 'Alamofire'
  pod 'SwiftyJSON', '~> 2.2.0'
end

#target 'OncarbTests' do
#  pod 'Alamofire'
#  pod 'SwiftlyJSON', '~> 2.2.0'
#end

我缺少一个步骤吗?

谢谢!

推荐答案

这已经解决了我的问题:

This has fixed it for me:


  1. 打开工作区。

  2. 单击屏幕左侧的蓝色项目图标(展开到文件树中)

  3. 在右侧,选择目标(与项目相反 - 项目是蓝色的,目标就像一支铅笔,一把尺子和一把三角形的画笔)
  4. 点击常规选项卡 >
  5. 转到链接的框架和库部分(一直位于底部)
  6. 删除豆荚框架

  7. 添加Alamofire和SwiftyJSON

  1. Open up the workspace.
  2. Click on the blue project icon (that expands into your file tree) on the left hand side of the screen
  3. Just to the right, select "Targets" (as opposed to "Project"--Project is blue, Target is like a pencil and a ruler and a paintbrush making a triangle)
  4. Click on the General tab
  5. Go to the "Linked Frameworks and Libraries" section (all the way at the bottom)
  6. Delete the Pods frameworks
  7. Add Alamofire and SwiftyJSON

在我的情况下,除非我删除了pod框架,否则它不起作用,但我感觉这是一个解决方法。也许有更多经验的人可以发表评论。

In my case, it didn't work unless I removed the pods frameworks, but I get the feeling that this is a workaround. Perhaps someone with more experience can comment.

这篇关于Xcode中的Pod错误“Id:framework not found Pods”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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