diff --git a/Instabug.podspec b/Instabug.podspec index 129884f9..1408f8d4 100644 --- a/Instabug.podspec +++ b/Instabug.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Instabug" - s.version = "3.4.2" + s.version = "3.4.3" s.summary = "Bug reporting for mobile apps. Learn more at http://instabug.com" s.homepage = "http://instabug.com" s.license = { @@ -23,7 +23,7 @@ Pod::Spec.new do |s| } s.author = { "Instabug" => "contactus@instabug.com" } s.platform = :ios, '5.0' - s.source = { :git => "https://github.com/Instabug/Instabug-iOS.git", :tag => "3.4.2" } + s.source = { :git => "https://github.com/Instabug/Instabug-iOS.git", :tag => "3.4.3" } s.source_files = 'Instabug.framework/Versions/A/Headers/*.{h}' s.resources = 'Instabug.bundle', 'add_instabug_build_script.rb' s.preserve_paths = 'Instabug.framework/*', 'Instabug.bundle', 'add_instabug_build_script.rb' diff --git a/add_instabug_build_script.rb b/add_instabug_build_script.rb index efa50bfd..1518e569 100644 --- a/add_instabug_build_script.rb +++ b/add_instabug_build_script.rb @@ -1,6 +1,4 @@ require 'xcodeproj' -require 'logger' -$LOG = Logger.new('./log_file.log', 'monthly') INSTABUG_PHASE_NAME = "Upload Instabug dSYM" INSTABUG_PHASE_SCRIPT = <<-SCRIPTEND @@ -12,11 +10,20 @@ fi source "${SCRIPT_SRC}" SCRIPTEND - -$LOG.debug("env: #{ENV["PWD"]}") -project_path = Dir.glob("#{ENV["PWD"]}/*.xcodeproj") -project = Xcodeproj::Project.open(project_path.first) -main_target = project.targets.first -phase = main_target.new_shell_script_build_phase(INSTABUG_PHASE_NAME) -phase.shell_script = INSTABUG_PHASE_SCRIPT -project.save() +current_dir = Dir.pwd +while true + Dir.chdir("..") + if current_dir != Dir.pwd + current_dir = Dir.pwd + else + break + end + project_path = Dir.glob("#{current_dir}/*.xcodeproj") + unless project_path.first.nil? + project = Xcodeproj::Project.open(project_path.first) + main_target = project.targets.first + phase = main_target.new_shell_script_build_phase(INSTABUG_PHASE_NAME) + phase.shell_script = INSTABUG_PHASE_SCRIPT + project.save() + end +end diff --git a/log_file.log b/log_file.log deleted file mode 100644 index 5c2693a6..00000000 --- a/log_file.log +++ /dev/null @@ -1,18 +0,0 @@ -# Logfile created on 2014-08-06 22:12:42 +0300 by logger.rb/36483 -D, [2014-08-06T22:12:42.629588 #83775] DEBUG -- : project_path: [] -D, [2014-08-06T22:14:29.421162 #84526] DEBUG -- : project_path: [], env: /Users/Moataz/Instabug-iOS -D, [2014-08-06T22:21:52.320332 #87698] DEBUG -- : project_path: [], env: /Users/Moataz/Instabug-iOS -D, [2014-08-06T22:32:53.184109 #92418] DEBUG -- : project_path: [], env: /Users/Moataz/Instabug-iOS -D, [2014-08-06T22:33:43.418795 #92815] DEBUG -- : project_path: $(PODS_ROOT) -D, [2014-08-06T22:34:24.820212 #93142] DEBUG -- : project_path: -D, [2014-08-06T22:36:22.760319 #94029] DEBUG -- : project_dir: -D, [2014-08-06T22:36:22.760431 #94029] DEBUG -- : project_path: -D, [2014-08-06T22:36:58.252062 #94347] DEBUG -- : project_dir: -D, [2014-08-06T22:36:58.252177 #94347] DEBUG -- : project_path: -D, [2014-08-06T22:37:27.630643 #94545] DEBUG -- : project_dir: -D, [2014-08-06T22:37:27.630759 #94545] DEBUG -- : project_path: -D, [2014-08-06T22:38:53.436259 #95215] DEBUG -- : project_dir: -D, [2014-08-06T22:38:53.436369 #95215] DEBUG -- : project_path: -D, [2014-08-06T22:54:29.270806 #2087] DEBUG -- : project_path: , env: /Users/Moataz/Instabug-iOS -D, [2014-08-07T09:59:27.542086 #34951] DEBUG -- : project_path: , env: /Users/Moataz/Instabug-iOS -D, [2014-08-07T10:01:53.915348 #36154] DEBUG -- : project_path: , env: /Users/Moataz/Instabug-iOS