Xcode中的Pod错误“Id:framework not found Pods” [英] Pod Error in Xcode "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!
-
git clone(链接到bitbucket)
- 将Xcode pods项目中的配置设置更改为
none $ c $打开Xcode工作区文件
- 执行
pod install
/ li> - 尝试在Xcode中构建并收到错误
Id:未找到框架Pods clang:error:linker命令失败,退出代码1(使用-v查看调用)
git clone (link to bitbucket)
- changed the configuration settings in the Xcode pods project to
none
for both debug and release - performed
pod install
- opened Xcode workspace file
- 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:
- 打开工作区。
- 单击屏幕左侧的蓝色项目图标(展开到文件树中)
- 在右侧,选择目标(与项目相反 - 项目是蓝色的,目标就像一支铅笔,一把尺子和一把三角形的画笔) 点击常规选项卡 >
- 转到链接的框架和库部分(一直位于底部)
- 删除豆荚框架
- 添加Alamofire和SwiftyJSON
- Open up the workspace.
- Click on the blue project icon (that expands into your file tree) on the left hand side of the screen
- 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)
- Click on the General tab
- Go to the "Linked Frameworks and Libraries" section (all the way at the bottom)
- Delete the Pods frameworks
- 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屋!