Cocoapods不会安装?
Cocoapods will not install?
[!] Unable to find a specification for `Firebase/Analytics`
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
我过去曾在许多项目中毫不费力地添加了 pods,但现在,不会安装新的 pods。我运行 pod repo更新,我更新了我的Cocoapods版本,转use_frameworks!断断续续,我没主意了。
这是 Podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'
target 'My App' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
#use_modular_headers!
# Pods for My App
pod 'RxSwift'
pod 'RxAlamofire'
pod 'Alamofire'
pod 'Fabric'
pod 'Crashlytics'
source 'https://github.com/lixiang1994/Specs'
pod 'Loading'
end
将此添加到文件顶部:
source 'https://github.com/CocoaPods/Specs.git'
如果没有其他来源,Cocoapods 将默认添加该来源。通过添加您自己的来源,Cocoapods 假设一切都可以在那里找到。
[!] Unable to find a specification for `Firebase/Analytics`
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
我过去曾在许多项目中毫不费力地添加了 pods,但现在,不会安装新的 pods。我运行 pod repo更新,我更新了我的Cocoapods版本,转use_frameworks!断断续续,我没主意了。
这是 Podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'
target 'My App' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
#use_modular_headers!
# Pods for My App
pod 'RxSwift'
pod 'RxAlamofire'
pod 'Alamofire'
pod 'Fabric'
pod 'Crashlytics'
source 'https://github.com/lixiang1994/Specs'
pod 'Loading'
end
将此添加到文件顶部:
source 'https://github.com/CocoaPods/Specs.git'
如果没有其他来源,Cocoapods 将默认添加该来源。通过添加您自己的来源,Cocoapods 假设一切都可以在那里找到。