Error | [Ios] File Patterns: the 'Source_Files' Pattern Did Not Match Any File

iOS file patterns: The `source_files` pattern did not match any file

For anyone who stuck at - ERROR | [iOS] file patterns: Thesource_filespattern did not match any file., do not use source_files like below.

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

Use it with your inner directory name and exact file type.

For example if you have a Handler.swift file it must be.

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

If you have any .c file in your pod project that used

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

or you can mix it with different file types.

Further I realized that the you must not trust to Classes directory.

You can create a Sources directory and can add all your source files into it and then you can try it with

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

This is the exact solution for me.

I hope it helps for anyone who stuck at.

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

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

.podspec error - source_files` pattern did not match any file

The problem is that your podspec is referencing a commit that did not yet have the Classes folder,

i.e. this commit doesn't have a classes folder yet https://github.com/kevinrandrup/DropDownMenu/tree/09c9b3d515b78550557eabc0a8542f9f6f2623cf

You can fix this issue by referencing the latest commit, i.e. changing your podspec source to:

s.source       = { :git => "https://github.com/kevinrandrup/DropDownMenu.git", :commit => "0d6761feefccff1f7d8b7c7788ceb8e9cd1314ea" }
s.source_files = 'Classes/*.{h,m}'

Podspec validation error - File Patterns: The spec is empty

It seems that you forgot to include a source_files definition (or vendored_frameworks if you are making a closed-source pod). You should add a line like the following to your podspec :

s.source_files = "MyProject/**/*.{h,m}"

See this for an example of a minimal working podspec.

pod spec lint fails when pod lib lint succeeds. 'vendored_frameworks' pattern did not match any file

Figured it out. Basically, the folder structure of any zip you distribute has to match the search path internally. Like if your directory structure is:

.podspec
Frameworks/
- X.framework

where

s.vendored_frameworks = 'Frameworks/X.framework'

Then it seems that when you unzip the http: resource it should have the directory structure

Frameworks/
- X.framework


Related Topics



Leave a reply



Submit