Xcode 如何修复错误:[!]找不到“我自己的Cocoapods repo”的规范?

Xcode 如何修复错误:[!]找不到“我自己的Cocoapods repo”的规范?,xcode,git,github,cocoapods,Xcode,Git,Github,Cocoapods,我成功创建了名为“SayHello2”的可可荚存储库。 像这样: 并更新我的GitHub: 我认为一切都是正确的。但是当在cocoapods.org上搜索我的项目时,没有找到它。当尝试将此pod添加到Xcode项目时,会出现以下错误: 这是我的规范文件: # # Be sure to run `pod lib lint SayHello2.podspec' to ensure this is a # valid spec before submitting. # # Any lines st

我成功创建了名为“SayHello2”的可可荚存储库。
像这样:

并更新我的GitHub:

我认为一切都是正确的。但是当在cocoapods.org上搜索我的项目时,没有找到它。当尝试将此pod添加到Xcode项目时,会出现以下错误:

这是我的规范文件:

#
# Be sure to run `pod lib lint SayHello2.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
s.name             = 'SayHello2'
s.version          = '0.1.0'
s.summary          = 'And just SayHello2.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!


s.description      = "This is just a testing a git with cocoapods - SayHello2."


s.homepage         = 'https://github.com/reza-khalafi/SayHello2'
# s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license          = { :type => 'MIT', :file => 'LICENSE' }
s.author           = { 'reza-khalafi' => 'r.khalafi65@gmail.com' }
s.source           = { :git => 'https://github.com/reza-khalafi/SayHello2.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

s.ios.deployment_target = '9.0'

s.source_files = 'SayHello2/Classes/**/*'

# s.resource_bundles = {
#   'SayHello2' => ['SayHello2/Assets/*.png']
# }

# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
# s.dependency 'AFNetworking', '~> 2.3'
end
#
#确保运行'pod lib lint SayHello2.podspec'以确保这是一个
#提交前请确认有效的规范。
#
#任何以#开头的行都是可选的,但鼓励使用
#要了解有关Podspec的更多信息,请参阅http://guides.cocoapods.org/syntax/podspec.html
#
Pod::规格新do | s|
s、 name='SayHello2'
s、 版本='0.1.0'
s、 summary='然后说“你好”
#此说明用于生成标记和改进搜索结果。
#*思考:它能做什么?你为什么写它?重点是什么?
#*尽量简短、简洁、切中要害。
#*在下面的描述分隔符之间写入说明。
#*最后,不要担心缩进,CocoaPods会将其剥离!
s、 description=“这只是用cocoapods-SayHello2测试git。”
s、 主页https://github.com/reza-khalafi/SayHello2'
#s.screenshots='www.example.com/screenshots_1'、'www.example.com/screenshots_2'
s、 许可证={:type=>'MIT',:file=>'license'}
s、 作者={'reza khalafi'=>'r。khalafi65@gmail.com' }
s、 source={:git=>'https://github.com/reza-khalafi/SayHello2.git',:tag=>s.version.to_s}
#美国社交媒体https://twitter.com/'
s、 ios.deployment_target='9.0'
s、 source_files='SayHello2/Classes/***'
#s.resource_bundle={
#'SayHello2'=>['SayHello2/Assets/*.png']
# }
#s.public_头文件='Pod/Classes/***.h'
#s.frameworks='UIKit','MapKit'
#美国依赖性“AFNetworking”,“~>2.3”
结束
您所要做的就是

pod repo remove master
pod setup
检查附加的图像


我完全卸载了CoCoapod,然后重新安装。但我认为需要一段时间让cocoapods发布。