2017-05-21 78 views
0

我成功製作了'SayHello2'名字的可可豆儲存庫。
像這樣:
enter image description here如何解決錯誤:[!]無法找到「我自己的Cocoapods回購」規範?

而且更新我的GitHub:SayHello2 Github Address

我覺得一切是正確的。但是當在cocoapods.org中搜索我的項目時找不到它。當嘗試添加該吊艙的Xcode項目得到這個錯誤:
enter image description here

,這是我的規格文件:

# 
# 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' => '[email protected]' } 
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 

回答

6

所有你需要做的就是

pod repo remove master 
pod setup 

檢查附加的圖像。

enter image description here

+0

我完全卸載了cocoapods,然後重新安裝。 Tnx –

+0

但我認爲花時間釋放cocoapods。 –

相關問題