From 48d495e9d0f53cf8b00dd2a2bb29c0a230535974 Mon Sep 17 00:00:00 2001 From: Alexander Brausch Date: Wed, 1 Oct 2014 14:37:17 +0200 Subject: [PATCH] Added add_build_file_unsafe Due to performance problems this method does NOT check the existance of the file in the specified build_phase --- lib/xcode/build_phase.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/xcode/build_phase.rb b/lib/xcode/build_phase.rb index fbe0809..7c505b1 100644 --- a/lib/xcode/build_phase.rb +++ b/lib/xcode/build_phase.rb @@ -139,6 +139,15 @@ def add_build_file(file,settings = {}) end end + # @see add_build_file(file,settings = {}) for informations + # Removed the existance check for the given file. Needed that because of performance + # problems + # + def add_build_file_unsafe(file,settings = {}) + new_build_file = @registry.add_object BuildFile.buildfile(file.identifier,settings) + @properties['files'] << new_build_file.identifier + end + # # Add the specified file to the Build Phase that will have specific compiler # flags to disable ARC.