错误| [iOS]文件模式:“ source_files”模式与任何文件都不匹配 [英] ERROR | [iOS] file patterns: The `source_files` pattern did not match any file
问题描述
我将现有的库重命名为github,我更改了所有内容,并且一切正常,除了它现在不通过-pod spec lint KJCircularSlider.podspec来验证我的库。我检查了我的文件夹结构,它看起来很完美,任何人都可以帮我解决实际问题?
如果您想检查文件夹结构,这是我的库- KJCircularSlider
I renamed my Existing library to github, I changed everything and things are working fine apart from it's not validating my library now by - pod spec lint KJCircularSlider.podspec for trunk push. I checked my folder structure and it looks perfect, anyone can help me what can be the actual issue?
Here is my library if you want to check folder structure - KJCircularSlider
这是我的podspec文件。
Here is my podspec file.
Pod::Spec.new do |s|
s.name = 'KJCircularSlider'
s.version = '0.1.0'
s.summary = 'Circular slider - to slide from 0 to 100 in circular shape'
# 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 = <<-DESC
TODO: Add long description of the pod here.
It's circular slider, It provides circular shape to slide around from 0 to 100 percent, You can use it when you required a circular shape on slider rather than traditional iOS line shape slider.
DESC
s.homepage = 'https://github.com/KiranJasvanee/KJCircularSlider'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Kiran Jasvanee' => 'kiran.jasvanee@yahoo.com' }
s.source = { :git => 'https://github.com/KiranJasvanee/KJCircularSlider.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/KiranJasvanee'
s.ios.deployment_target = '9.0'
s.source_files = 'Classes/**/*'
# s.resource_bundles = {
# 'KJCircularSlider' => ['KJCircularSlider/Assets/*.png']
# }
# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
# s.dependency 'AFNetworking', '~> 2.3'
end
推荐答案
我已经解决了我的问题是通过更改pod的版本号
。
我已将我的 KJCurveSlider
库重命名为到 KJCircularSlider
,由于库的重大更改,我将无法使用 pod trunk push
进行推送。当我尝试使用 pod spec lint library.podspec
进行验证时,我不断收到以下错误,尽管如此,我提到了 s.source_files的完美路径
podspec
中的code>-错误| [iOS]文件模式:
source_files 模式与任何文件都不匹配。
然后我从更新了版本 0.1.0
到 0.2.0
,它已成功验证
I've solved my issue by changing version number
of my pod.
I've renamed my KJCurveSlider
library to KJCircularSlider
, because of major changes in library I wouldn't be able to push it using pod trunk push
. I was constantly receiving following error when I tried to validate using pod spec lint library.podspec
, nevertheless I had mention perfect path of s.source_files
in podspec
- ERROR | [iOS] file patterns: The
source_filespattern did not match any file.
Then I updated version from 0.1.0
to 0.2.0
, it validated successfully
这篇关于错误| [iOS]文件模式:“ source_files”模式与任何文件都不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!