Open 3sands opened 5 years ago
This should probably be expanded to handle any "directory" that should remain a directory, such as .app, .framework, .ipa, .xcappdata, etc.
I added a preliminary PR to fix the issue and am available to make any corrections or edits.
I'm trying to download via http a pod that is uploaded as a tarball with only a .framework as its contents. Right now, because the .framework is a technically just a directory, the cocoapods downloader will move the contents of the .framework without consideration of the structure. Specifically, I'm looking at lines 106-122 in remote_file.rb.
If the conditional is changed to
if contents.count == 1 && entry.directory? && File.extname(entry) != '.framework'
, I am able to successfully pod install. Without it, the named pod folder in the pods directory of the project is empty.