作者:文竹 | 来源:互联网 | 2023-02-08 14:07
我刚刚升级到Swift 3
的2.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.2
到Swift 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