热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

升级到Swift3Error-ld:找不到框架GoogleInterchangeUtilities

如何解决《升级到Swift3Error-ld:找不到框架GoogleInterchangeUtilities》经验,为你挑选了1个好方法。

我刚刚升级到Swift 32.2.我使用Firebase,Google Maps,Google Places,SwiftyJSON,Alamofire 4.4,和SDWebImage.我重新安装了所有pods,运行git commit并修复了除此之外的所有错误:

ld:找不到框架GoogleInterchangeUtilities clang:

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

(null):未找到框架GoogleInterchangeUtilities

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

我在哪里可以找到GoogleInterchangeUtilities以及如何安装或修复它?



1> Lance Samari..:

当我升级Swift 2.2Swift 3我做的第一件事是干净并删除我的cocoapods:

pod deintegrate
pod clean
pod cache clean --all
rm Podfile

出于某种原因,当我重新安装我原来拥有的所有pod时,GoogleInterchangeUtilities文件加上其他几个在此过程中被删除:

Analyzing dependencies
Removing GoogleInterchangeUtilities //**REMOVED**
Removing GoogleNetworkingUtilities //**REMOVED**
Removing GoogleParsingUtilities //**REMOVED**
Removing GoogleSymbolUtilities //**REMOVED**
Removing GoogleUtilities //**REMOVED**
Downloading dependencies
Installing Alamofire 3.5.1 (was 3.4.1)
Installing Firebase 3.15.0 (was 3.3.0)
Installing FirebaseAnalytics 3.7.0 (was 3.2.1)
Installing FirebaseAuth 3.1.1 (was 3.0.3)
Installing FirebaseCore (3.5.2)
Installing FirebaseCrash 1.1.6 (was 1.0.6)
Installing FirebaseDatabase 3.1.2 (was 3.0.2)
Installing FirebaseDynamicLinks 1.3.4 (was 1.1.0)
Installing FirebaseInstanceID 1.0.9 (was 1.0.7)
Installing FirebaseStorage 1.1.0 (was 1.0.2)
Installing GTMSessionFetcher (1.1.9)
Installing GoogleMaps 2.2.0 (was 1.13.2)
Using GooglePlacesAPI (1.0.6)
Installing GoogleToolboxForMac (2.1.1)
Installing ObjectMapper 1.5.0 (was 1.3.0)
Installing Protobuf (3.2.0)
Using SDWebImage (3.8.2)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 10 dependencies from the Podfile and 17 total pods installed.

我最终去谷歌和类型GoogleInterchangeUtilities害得我给它的吊舱安装页面在这里.我重新安装了删除错误的pod,但随后删除的每个其他文件都导致了他们自己的ld: framework not found...Xcode错误.

如果您清理并删除了cocoapods文件并重新安装了所有内容,那么很长一段时间内,Google...Utilities框架可能会被删除.您必须将这些特定的单个pod重新包含在pod文件中并pod install再次运行:

这是我的pod文件,除了我的所有其他pod之外还包含它们:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'myProject' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for myProject

pod 'GoogleInterchangeUtilities', '~> 1.2'
pod 'GoogleNetworkingUtilities', '~> 1.2'
pod 'GoogleParsingUtilities', '~> 1.1'
pod 'GoogleSymbolUtilities', '~> 1.1'
pod 'GoogleUtilities', '~> 1.3'

//all my other pods...

以下是他们的cocoapods安装页面:

GoogleInterchangeUtilities

GoogleNetworkingUtilities

GoogleParsingUtilities

GoogleSymbolUtilities

GoogleUtilities


推荐阅读
author-avatar
文竹
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有