Cocoapods: File patterns did not match any file when spec lint

Created on 28 Sep 2017  路  3Comments  路  Source: CocoaPods/CocoaPods

Before you start, are you using the latest CocoaPods release?
A lot changes with Xcode releases that are not backwards compatible.

Not an issue about the CocoaPods command line app? Please file an issue in the appropriate repo - https://github.com/CocoaPods
Issues are for feature requests, and bugs; questions should go to Stack Overflow

Using CocoaPods <= 0.39: http://blog.cocoapods.org/Sharding/

Using Xcode 8: Requires CocoaPods 1.1.0 or above.

Issue with Nanaimo not loading:
Please run [sudo] gem uninstall nanaimo and remove all but the latest version.

Issues with pod search? Try deleting your cache rm -rf ~/Library/Caches/CocoaPodsfirst.

Report

What did you do?

We tried "pod spec lint" for a .podspec from "https://github.com/AltairEven/ALSAliPay.git"

with pod version of 1.1.1 and 1.4.0.beta.1

We got "pod lib lint" succeed first, so "pod spec lint" should be success as before.

But "pod spec lint" failed with errors like belows

-> ALSAlipay (0.0.1)
- ERROR | [iOS] file patterns: The source_files pattern did not match any file.
- ERROR | [iOS] file patterns: The resources pattern did not match any file.
- ERROR | [iOS] file patterns: The vendored_frameworks pattern did not match any file.
- ERROR | [iOS] file patterns: The public_header_files pattern did not match any file.

Analyzed 1 podspec.

[!] The spec did not pass validation, due to 4 errors.

Project that demonstrates the issue

https://github.com/AltairEven/ALSAliPay.git
commit: 0fd255f702db062e9795b17e526ec7652181596d [0fd255f]

Most helpful comment

Move the podspec to the root of the repo and not inside the ALSAAliPay folder.

All 3 comments

Move the podspec to the root of the repo and not inside the ALSAAliPay folder.

Thanks for your reply, it works.
As a suggestion, if you could provide the whole path with ERROR info, then we 'll be very thankful.

Just like "- ERROR | [iOS] file patterns: The source_files pattern did not match any file from 'xx/xx'"

Anyway, thanks again.

I tried so many way but i found same error again and again
-> PODNAME (1.1)
- ERROR | [iOS] file patterns: The source_files pattern did not match any file.
- NOTE | xcodebuild: note: Using new build system
- NOTE | [iOS] xcodebuild: note: Planning build
- NOTE | [iOS] xcodebuild: note: Constructing build description
- NOTE | [iOS] xcodebuild: warning: Skipping code signing because the target does not have an Info.plist file. (in target 'App')

Was this page helpful?
0 / 5 - 0 ratings

Related issues

evermeer picture evermeer  路  3Comments

pronebird picture pronebird  路  3Comments

tlandsmancars picture tlandsmancars  路  3Comments

iosdev-republicofapps picture iosdev-republicofapps  路  3Comments

spencerkohan picture spencerkohan  路  3Comments