lib/gym/runner.rb in gym-0.8.2 vs lib/gym/runner.rb in gym-0.8.3
- old
+ new
@@ -55,18 +55,18 @@
#####################################################
# @!group The individual steps
#####################################################
def clear_old_files
- return unless Xcode.pre_7?
+ return unless Gym.config[:use_legacy_build_api]
if File.exist?(PackageCommandGenerator.ipa_path)
File.delete(PackageCommandGenerator.ipa_path)
end
end
def fix_package
- return unless Xcode.pre_7?
+ return unless Gym.config[:use_legacy_build_api]
Gym::XcodebuildFixes.swift_library_fix
Gym::XcodebuildFixes.watchkit_fix
end
# Builds the app and prepares the archive
@@ -147,10 +147,10 @@
end
private
def find_archive_path
- if Xcode.pre_7?
+ if Gym.config[:use_legacy_build_api]
BuildCommandGenerator.archive_path
else
Dir.glob(File.join(BuildCommandGenerator.build_path, "*.ipa")).last
end
end