ld:框架未找到 Pods [英] ld: framework not found 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 install 的日志中一样,我在 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
谢谢,
推荐答案
Xcode 9, 10, 11, 11.5
安装https://github.com/CocoaPods/cocoapods-deintegrate
pod deintegrate
然后
pod install
这篇关于ld:框架未找到 Pods的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!