lib/gym/generators/package_command_generator.rb in gym-0.7.0 vs lib/gym/generators/package_command_generator.rb in gym-0.7.1
- old
+ new
@@ -26,10 +26,14 @@
private
# The generator we need to use for the currently used Xcode version
def generator
- Xcode.pre_7? ? PackageCommandGeneratorLegacy : PackageCommandGeneratorXcode7
+ if Xcode.pre_7? and !Gym.config[:use_legacy_build_api]
+ PackageCommandGeneratorLegacy
+ else
+ PackageCommandGeneratorXcode7
+ end
end
end
end
end