Open asutula opened 4 years ago
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.
Apologies this wasn't ever addressed, but it looks like this was due to the default behavior of flattening certain archive formats (.tar.gz
included).
To change this, add :flatten => false
to the hash for the source
attribute.
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