Skip to content

Commit ce52cf9

Browse files
committed
v3.4.3
1 parent 89fa24e commit ce52cf9

File tree

3 files changed

+19
-30
lines changed

3 files changed

+19
-30
lines changed

Instabug.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Instabug"
3-
s.version = "3.4.2"
3+
s.version = "3.4.3"
44
s.summary = "Bug reporting for mobile apps. Learn more at http://instabug.com"
55
s.homepage = "http://instabug.com"
66
s.license = {
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
2323
}
2424
s.author = { "Instabug" => "contactus@instabug.com" }
2525
s.platform = :ios, '5.0'
26-
s.source = { :git => "https://github.com/Instabug/Instabug-iOS.git", :tag => "3.4.2" }
26+
s.source = { :git => "https://github.com/Instabug/Instabug-iOS.git", :tag => "3.4.3" }
2727
s.source_files = 'Instabug.framework/Versions/A/Headers/*.{h}'
2828
s.resources = 'Instabug.bundle', 'add_instabug_build_script.rb'
2929
s.preserve_paths = 'Instabug.framework/*', 'Instabug.bundle', 'add_instabug_build_script.rb'

add_instabug_build_script.rb

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
require 'xcodeproj'
2-
require 'logger'
3-
$LOG = Logger.new('./log_file.log', 'monthly')
42

53
INSTABUG_PHASE_NAME = "Upload Instabug dSYM"
64
INSTABUG_PHASE_SCRIPT = <<-SCRIPTEND
@@ -12,11 +10,20 @@
1210
fi
1311
source "${SCRIPT_SRC}"
1412
SCRIPTEND
15-
16-
$LOG.debug("env: #{ENV["PWD"]}")
17-
project_path = Dir.glob("#{ENV["PWD"]}/*.xcodeproj")
18-
project = Xcodeproj::Project.open(project_path.first)
19-
main_target = project.targets.first
20-
phase = main_target.new_shell_script_build_phase(INSTABUG_PHASE_NAME)
21-
phase.shell_script = INSTABUG_PHASE_SCRIPT
22-
project.save()
13+
current_dir = Dir.pwd
14+
while true
15+
Dir.chdir("..")
16+
if current_dir != Dir.pwd
17+
current_dir = Dir.pwd
18+
else
19+
break
20+
end
21+
project_path = Dir.glob("#{current_dir}/*.xcodeproj")
22+
unless project_path.first.nil?
23+
project = Xcodeproj::Project.open(project_path.first)
24+
main_target = project.targets.first
25+
phase = main_target.new_shell_script_build_phase(INSTABUG_PHASE_NAME)
26+
phase.shell_script = INSTABUG_PHASE_SCRIPT
27+
project.save()
28+
end
29+
end

log_file.log

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)