Cocoapods 没有将我的项目显示为已测试
Cocoapods not showing my project as Tested
我有一个添加为 Cocoapod 的项目。它包含在测试中,但 Cocoapods 项目页面不显示测试。这是我的项目页面的link:
https://cocoapods.org/pods/SKTableViewDataSource
请注意,Tested: X
在右侧栏中。
这是我的 podspec 的样子:
Pod::Spec.new do |spec|
spec.name = 'SKTableViewDataSource'
spec.version = '1.0.0'
spec.license = 'MIT'
spec.summary = 'An easy to configure data source for UITableView.'
spec.homepage = 'https://github.com/skladek/SKTableViewDataSource'
spec.authors = { 'Sean Kladek' => 'skladek@gmail.com' }
spec.source = { :git => 'https://github.com/skladek/SKTableViewDataSource.git', :tag => spec.version }
spec.ios.deployment_target = '9.0'
spec.source_files = 'Source/*.swift'
end
我是否需要向 podspec 或其他地方添加一些内容才能识别我的测试?
来自 cocoadocs.org 项目中的工单:
Apparently it comes from the © character in the headers added by Xcode when creating a new Swift file, like in the following line:
// Copyright © 2017 pirishd. All rights reserved.
Removing this character in all the Swift files of the Test target makes detection work again.
https://github.com/CocoaPods/cocoadocs.org/issues/523
从我的测试文件中删除版权 headers 对我有用。
我有一个添加为 Cocoapod 的项目。它包含在测试中,但 Cocoapods 项目页面不显示测试。这是我的项目页面的link:
https://cocoapods.org/pods/SKTableViewDataSource
请注意,Tested: X
在右侧栏中。
这是我的 podspec 的样子:
Pod::Spec.new do |spec|
spec.name = 'SKTableViewDataSource'
spec.version = '1.0.0'
spec.license = 'MIT'
spec.summary = 'An easy to configure data source for UITableView.'
spec.homepage = 'https://github.com/skladek/SKTableViewDataSource'
spec.authors = { 'Sean Kladek' => 'skladek@gmail.com' }
spec.source = { :git => 'https://github.com/skladek/SKTableViewDataSource.git', :tag => spec.version }
spec.ios.deployment_target = '9.0'
spec.source_files = 'Source/*.swift'
end
我是否需要向 podspec 或其他地方添加一些内容才能识别我的测试?
来自 cocoadocs.org 项目中的工单:
Apparently it comes from the © character in the headers added by Xcode when creating a new Swift file, like in the following line:
// Copyright © 2017 pirishd. All rights reserved.
Removing this character in all the Swift files of the Test target makes detection work again.
https://github.com/CocoaPods/cocoadocs.org/issues/523
从我的测试文件中删除版权 headers 对我有用。