lib/gym/generators/build_command_generator.rb in gym-1.1.4 vs lib/gym/generators/build_command_generator.rb in gym-1.1.5
- old
+ new
@@ -84,9 +84,10 @@
Gym.cache[:archive_path] ||= Gym.config[:archive_path]
unless Gym.cache[:archive_path]
file_name = [Gym.config[:output_name], Time.now.strftime("%F %H.%M.%S")] # e.g. 2015-08-07 14.49.12
Gym.cache[:archive_path] = File.join(build_path, file_name.join(" ") + ".xcarchive")
end
+
if File.extname(Gym.cache[:archive_path]) != ".xcarchive"
Gym.cache[:archive_path] += ".xcarchive"
end
return Gym.cache[:archive_path]
end