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'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 archive is a tarball and it only contained a folder, move its# contents to the target (#727)#ifshould_flatten?contents=target_path.childrencontents.delete(target_path + @filename)entry=contents.firstifcontents.count == 1 && entry.directory?tmp_entry=entry.sub_ext("#{entry.extname}.tmp")beginFileUtils.move(entry,tmp_entry)FileUtils.move(tmp_entry.children,target_path)ensureFileUtils.remove_entry(tmp_entry)endendend
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: