lib/gym/xcodebuild_fixes/swift_fix.rb in gym-1.2.0 vs lib/gym/xcodebuild_fixes/swift_fix.rb in gym-1.3.0
- old
+ new
@@ -12,11 +12,11 @@
def swift_library_fix
require 'fileutils'
return if check_for_swift PackageCommandGenerator
- Helper.log.info "Packaging up the Swift Framework as the current app is a Swift app" if $verbose
+ UI.verbose "Packaging up the Swift Framework as the current app is a Swift app"
ipa_swift_frameworks = Dir["#{PackageCommandGenerator.appfile_path}/Frameworks/libswift*"]
Dir.mktmpdir do |tmpdir|
# Copy all necessary Swift libraries to a temporary "SwiftSupport" directory so that we can
# easily add it to the .ipa later.
@@ -47,10 +47,10 @@
end
# @param the PackageCommandGenerator
# @return true if swift
def check_for_swift(pcg)
- Helper.log.info "Checking for Swift framework" if $verbose
+ UI.verbose "Checking for Swift framework"
default_swift_libs = "#{pcg.appfile_path}/Frameworks/libswift.*" # note the extra ., this is a string representation of a regexp
zip_entries_matching(pcg.ipa_path, /#{default_swift_libs}/).count > 0
end
# return the entries (files or directories) in the zip matching the pattern