Hi,
Im creating a private cocoapod. I have uploaded my IOS framework zip file to cloud and then point it in podspec file, but when I push podspec file it always show ERROR | [iOS] file patterns: Thevendored_frameworkspattern did not match any file.. I double check my configuration in podspec file many times, it still show pattern did not match any file error, what's wrong with it, could you help me?
Pod::Spec.new do |s|
s.name = "TestFrameworkZip"
s.version = "1.0.59"
s.summary = "LKBinaryTest."
s.description = <<-DESC
this is LKBinaryTest
DESC
s.license = { :type => "MIT"}
s.homepage = "http://xxx.com/xxxx/LKBinaryTest.git"
s.author = { "xxx" => "[email protected]" }
s.platform = :ios, "8.0"
s.source = { :http => "https://resource-1257147347.cos.ap-shanghai.myqcloud.com/LKBinaryTest.framework.zip" }
s.vendored_framework = "LKBinaryTest.framework"
s.static_framework = true
s.requires_arc = true
end
vendored_frameworks can find framework file
ERROR | [iOS] file patterns: The vendored_frameworks pattern did not match any file.
CocoaPods : 1.5.3
Ruby : ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
RubyGems : 2.7.7
Host : Mac OS X 10.13.4 (17E199)
Xcode : 9.3.1 (9E501)
Git : git version 2.15.1 (Apple Git-101)
Ruby lib dir : /usr/local/Cellar/ruby/2.4.0/lib
Repositories : leoao-inc-privatepods - [email protected]:Lefit_iOS_Organization/PrivatePods.git @ 86e1b8de27d150cd88ecdd6b7633a2c9b6e6641c
master - https://github.com/CocoaPods/Specs.git @ c97a7a4e50a64156a1f2f26c5eda7dcd5ed9fb58
PrivatePods - http://gitlab.leoao-inc.com/Lefit_iOS_Organization/PrivatePods.git @ 86e1b8de27d150cd88ecdd6b7633a2c9b6e6641c
Executable Path: /usr/local/bin/pod
cocoapods-deintegrate : 1.0.2
cocoapods-packager : 1.5.0
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.3.0
cocoapods-try : 1.1.0
Worked for me:
** BUILD SUCCEEDED **
Testing with `xcodebuild`.
-> TestFrameworkZip (1.0.59)
- WARN | url: The URL (http://xxx.com/xxxx/LKBinaryTest.git) is not reachable.
- WARN | [iOS] license: Unable to find a license file
Analyzed 1 podspec.
It is best to ask this question on Stackoverflow under cocoapods tag.
I will re-open this if we can show clearly its a cocoapods library issue.
@dnkoutso what version of pod you are using ?
1.5.3
** BUILD SUCCEEDED **
Testing with `xcodebuild`.
-> TestFrameworkZip (1.0.59)
- WARN | [iOS] license: Unable to find a license file
Analyzed 1 podspec.
TestFrameworkZip.podspec passed validation.
➜ TestFrameworkZip git:(master) ✗ pod spec lint --verbose --allow-warnings
** BUILD SUCCEEDED **
Testing with `xcodebuild`.
-> TestFrameworkZip (1.0.59)
- ERROR | [iOS] file patterns: The `vendored_frameworks` pattern did not match any file.
- WARN | [iOS] license: Unable to find a license file
[!] TestFrameworkZip did not pass validation, due to 1 error.
You can use the `--no-clean` option to inspect any issue.
➜ TestFrameworkZip git:(master) ✗ pod lib lint --verbose --allow-warnings
it seems pod lib lint can not validate http zip.
@karosLi pod lib lint is linting the pod locally (i.e it does not download the source). This means you have to locally place your framework file next to your podspec for it to work.
Hi @karosLi , I am facing the same issue of "[iOS] file patterns: The vendored_frameworks pattern did not match any file. " when I run "pod spec lint --verbose --allow-warnings". Were you able to solve the issue?
Most helpful comment
@karosLi
pod lib lintis linting the pod locally (i.e it does not download the source). This means you have to locally place your framework file next to your podspec for it to work.