ERROR | [iOS] file patterns: The `source_files` pattern did not match any file

the vendored_frameworks pattern did not match any file
podspec exclude files
podspec libraries
cocoapods preserve_paths
podspec framework
cocoapods private_header_files
pod_target_xcconfig
podspec module_name

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

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

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: Thesource_filespattern did not match any file. Then I updated version from 0.1.0 to 0.2.0, it validated successfully

File patterns did not match any file when spec lint · Issue #7085 , ERROR | [iOS] file patterns: The source_files pattern did not match any file. - ERROR | [iOS] file patterns: The resources pattern did not match  Private Pod library spec fails linting with The `source_files` pattern did not match any file. #5761 CaptainStiggz opened this issue Aug 17, 2016 · 4 comments Labels

I've met this problem too. The path I set for s.source_files = 'Pod/Classes/**/*' is absolutely right. I got

The 'source_files' pattern did not match any file` error

because there's no file within classes folder. After putting my library files in it, problem solved.

Private Pod library spec fails linting with The `source_files` pattern , [iOS] file patterns: The `source_files` pattern did not match any file. Analyzed 1 podspec. [!] The spec did not pass validation, due to 1 error. When i swap our protractor_coverage with protractor in the task runner the tests execute fine but they are not running against the instrumented code so I dont get the reports. I have tried this with other conf and spec files that have been pulled from a repo upon npm install. The spec and config files here are in the actual app hierarchy.

I cleared the cache for my Pod and it worked!

pod cache clean YOUR_POD_NAME

iOS [error] file patterns: The `source_files` pattern did not match any , Ask questionsiOS [error] file patterns: The `source_files` pattern did not match any file. Recently I've created a podspec and successfully push to cocoapods. Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

For me I tried to change the Classes directory to Sources to make it future compatible with Swift Package Manager, and got this error.

- ERROR | [iOS] file patterns: The `source_files` pattern did not match any file.

the line from my podspec:

s.source_files = 'EvolvSDK/Sources/**/*'

and my file structure looked as such:

|-EvolvSDK
    |-sources/
        |-Utility/
            |-Log.swift

I changed the sources directory name to classes and changed my podspec:

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

Now it passes validation. the confusing part is that the directory is lowercase, and the podspec has uppercase. If anyone knows why that is, please add a comment as this is my first cocoapod and I'm trying to understand how it all works.

am getting the below error while validating the podspec file, please , mine is an swift framework that contains few objective-c files, coredata and storyboard's. - ERROR | [iOS] file patterns: The `source_files` pattern did not match any  These patterns are matched against the source files to include headers that will be exposed to the user’s project and from which documentation will be generated. When the library is built, these headers will appear in the build directory. If no public headers are specified then all the headers in source_files are considered public. Examples:

Hide implementation of swift framework when distributing, You can also create a GitHub repository and push the .zip file to it. '8.0' s.ios.​vendored_frameworks = 'NiceLogger.framework' s.source = { :http ERROR | file patterns: The `source_files` pattern did not match any file. With the upgrade to 2.3.0, I am unable to run my existing test suite because of these errors: WARNING - pattern D:\code\test\foo.e2e.spec.js did not match any files.

ERROR, ERROR | [iOS] file patterns: The `source_files` pattern did not match any file - ios. Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Podspec Syntax Reference, A specification describes a version of Pod library. It includes details about where the source should be fetched from, what files to use, the build settings to apply,  How do we validate those inputs? This is where the attribute pattern comes into play. Using the Pattern Attribute. The pattern attribute is only applicable on the input element. It allows us to define our own rule to validate the input value using Regular Expressions (RegEx). Again, if the value does not match the specified pattern, the input

Comments
  • s.source_files = 'KJCircularSlider/Classes/*swift'? If we look at: github.com/KiranJasvanee/KJCircularSlider/blob/master/…, we see that the path is KJCircularSlider/Classes/KJCircularSlider.swift.
  • I've changed it locally and tried didn't worked, should I've to commit it and try out then? or it should be working after changing locally?
  • Worked for me also.
  • fatal: Remote branch 0.2.0 not found in upstream origin
  • Thanks for another scenario @Ryan.