无法在 CocoaPods 网站上扩展 Cocoapod
Posted
技术标签:
【中文标题】无法在 CocoaPods 网站上扩展 Cocoapod【英文标题】:Can't expand Cocoapod on CocoaPods website 【发布时间】:2017-05-16 17:13:50 【问题描述】:我创建了我的第一个 CocoaPod 并发布了它。在网站上,我可以搜索并找到它,但我无法扩展。我没有展开按钮,而是有 3 个按钮 - 站点、文档和规范。点击链接会直接进入 Github 页面,而不是 Cocoapods.org 中的文档页面。
这是我的 podspec 文件:
Pod::Spec.new do |s|
s.name = 'SpinWheelControl'
s.version = '0.1.1'
s.summary = 'An inertial spinning wheel UI control that allows selection of an item.'
s.description = <<-DESC
'Spin Wheel Control is a wheel of fortune-style inertial spinning wheel UI control that allows selection of an item. It is written in the Swift programming language and to be used in ios apps. The code is a Swift derivation, port, and enhancement based loosely on the Objective-C SMWheelControl CocoaPod written by Cesare Rocchi and Simone Civetta found at https://cocoapods.org/pods/SMWheelControl.'
DESC
s.homepage = 'https://github.com/joshdhenry/SpinWheelControl'
s.license = 'BSD 3-Clause'
s.author = 'Josh Henry' => 'MyEmail@MyEmail.com'
s.source = :git => 'https://github.com/joshdhenry/SpinWheelControl.git', :tag => s.version.to_s
s.ios.deployment_target = '10.3'
s.source_files = 'SpinWheelControl/*.swift,h,m'
end
我已经按照this 指南进行操作,甚至尝试上传带有修改后的 podspec 的新版本,但我仍然遇到这个问题。如何使点击 Cocoapod 将我带到文档页面,而不是 Github 页面?
【问题讨论】:
【参考方案1】:大约 5 天后,现在会显示展开选项并生成 CocoaDocs。我不认为这是因为我所做的更改,而是因为 Cocoapods.org 的服务器上的某些更新。现在效果很好!
【讨论】:
以上是关于无法在 CocoaPods 网站上扩展 Cocoapod的主要内容,如果未能解决你的问题,请参考以下文章