You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a Podspec that spec.source references a tgz file containing an already-compiled iOS framework. This tgz file is hosted in a GitHub release. I then tried to lint the Podspec.
What did you expect to happen?
I expected the podspec lint to complete successfully.
What happened instead?
The lint failed with:
- ERROR | [iOS] file patterns: The `vendored_frameworks` pattern did not match any file
I tracked this down to a quirk where this error only happens if the .framework directory is the only thing in the spec.source referenced a tgz file. If I touch dummy to create an empty file, add that along with the .framework to a tgz file, and reference that as the spec.source, the podspec passes lint just fine.
CocoaPods Environment
Stack
CocoaPods : 1.8.4
Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
RubyGems : 3.0.3
Host : Mac OS X 10.15.1 (19B88)
Xcode : 11.1 (11A1027)
Git : git version 2.21.0 (Apple Git-122)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
I think this could definitely be improved. Here's the logic that handles flattening - we could check if the only folder is a .framework or something similar
Report
What did you do?
I created a Podspec that
spec.source
references a tgz file containing an already-compiled iOS framework. This tgz file is hosted in a GitHub release. I then tried to lint the Podspec.What did you expect to happen?
I expected the podspec lint to complete successfully.
What happened instead?
The lint failed with:
I tracked this down to a quirk where this error only happens if the
.framework
directory is the only thing in thespec.source
referenced a tgz file. If Itouch dummy
to create an empty file, add that along with the.framework
to a tgz file, and reference that as thespec.source
, the podspec passes lint just fine.CocoaPods Environment
Stack
Installation Source
Plugins
Project that demonstrates the issue
A "broken" release of the tgz file (containing only the
.framework
) is located at https://github.com/textileio/grpc-ipfs-lite/releases/download/v0.0.1-rc0/grpc-ipfs-lite_v0.0.1-rc0_ios-framework.tar.gz.A working release of the tgz file (containing the
.framework
and an emptydummy
file) is located at https://github.com/textileio/grpc-ipfs-lite/releases/download/v0.0.1-rc1/grpc-ipfs-lite_v0.0.1-rc1_ios-framework.tar.gz.I've attached a zip containing two pod specs, one referencing each of the above tgz files. You can lint each one and see the results.
Archive.zip
The text was updated successfully, but these errors were encountered: