Class: XCFrameworkCarthageArchive
- Inherits:
-
CarthageArchive
- Object
- CarthageArchive
- XCFrameworkCarthageArchive
- Defined in:
- lib/xcframework_carthage_archive.rb
Instance Attribute Summary
Attributes inherited from CarthageArchive
#archive_filename, #archive_path
Instance Method Summary collapse
-
#compress_archive(shell, carthage_build_dir = CARTHAGE_BUILD_DIR) ⇒ Object
Compresses ‘Carthage/Build/GoogleSignIn.xcframework“ into `GoogleSignIn-iOS.zip`.`.
Methods inherited from CarthageArchive
#archive_size, #delete_archive, #initialize, #unpack_archive
Constructor Details
This class inherits a constructor from CarthageArchive
Instance Method Details
#compress_archive(shell, carthage_build_dir = CARTHAGE_BUILD_DIR) ⇒ Object
Compresses ‘Carthage/Build/GoogleSignIn.xcframework“ into `GoogleSignIn-iOS.zip`.`
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/xcframework_carthage_archive.rb', line 7 def compress_archive(shell, carthage_build_dir = CARTHAGE_BUILD_DIR) $LOG.debug("Archiving #{@framework_name} for #{@platform}") framework_path = File.join(carthage_build_dir, "#{@framework_name}.xcframework") raise MissingFrameworkDirectoryError.new, "Archive can't be created, no xcframework directory at #{framework_path}" unless Dir.exist?(framework_path) delete_archive shell.archive([framework_path], @archive_path) $LOG.debug("Created #{@archive_path} archive, file size: #{formatted_archive_size}") end |