我的 Podfile 看起来像这样:
source 'https://github.com/CocoaPods/Specs.git'
--source= 'git@bitbucket.org:appstrakt/apps-tool-libraries-appletech-specs-private.git'
--source= 'git@bitbucket.org:appstrakt/apps-tool-libraries-appletech-specs-test.git'
target 'Test' do
platform :ios, '8.0'
use_frameworks!
# Fabric
pod 'Fabric'
pod 'Crashlytics'
# Appstrakt Pods
pod 'NovemberFiveApplication-iOS', '~> 2.0'
pod 'Dye', '~> 2.0'
pod 'APGoogleAnalytics', '~> 2.0'
pod 'APCrashlyticsAnalytics', '~> 2.0'
pod 'APLoggerServiceBasic', '~> 2.0'
# Dexter
pod 'Dexter', '~> 0.0.1'
pod 'DEXHTTPMonitorModule', '~> 0.0.1'
# 3rd Party Pods
pod 'JVFloatLabeledTextField', '~> 1.1'
pod 'Lockbox', '~> 1.4'
pod 'UICollectionViewLeftAlignedLayout'
pod 'Reveal-SDK'
end
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
当我运行“pod install”时,出现错误:
Analyzing dependencies [!] Unable to find a specification for
NovemberFiveApplication-iOS (~> 2.0)
You have either: * out-of-date source repos which you can update with
pod repo update
or withpod install --repo-update
. * mistyped the name or version. * not added the source repo that hosts the Podspec to your Podfile.
最佳答案
NovemberFiveApplication-iOS
不是公共(public) CocoaPod。要安装它,您需要添加存储库:https://guides.cocoapods.org/making/private-cocoapods.html
十一五似乎是一个企业,没有开源代码库。要使用他们的 SDK,您需要从他们那里获取 repo。
关于ios - CocoaPods - 无法找到规范,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58447024/