Skip to content

Commit cb47323

Browse files
committed
📝 Update script to add brackets to if condition as it did not get evaluated correctly
1 parent 86beaa7 commit cb47323

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎link.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
# Add Instabug to every target that is of type application
3333
targets.each do |target|
34-
if target.is_a? Xcodeproj::Project::Object::PBXNativeTarget && (target.product_type == "com.apple.product-type.application") && (target.platform_name == :ios)
34+
if (target.is_a? Xcodeproj::Project::Object::PBXNativeTarget) && (target.product_type == "com.apple.product-type.application") && (target.platform_name == :ios)
3535

3636
# Add new "Embed Frameworks" build phase to target
3737
embed_frameworks_build_phase = target.build_phases.find { |build_phase| build_phase.to_s == 'Embed Instabug Framework'}

‎unlink.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
# Remove Instabug to every target that is of type application
2929
targets.each do |target|
30-
if target.is_a? Xcodeproj::Project::Object::PBXNativeTarget && (target.product_type == "com.apple.product-type.application") && (target.platform_name == :ios)
30+
if (target.is_a? Xcodeproj::Project::Object::PBXNativeTarget) && (target.product_type == "com.apple.product-type.application") && (target.platform_name == :ios)
3131

3232
# Remove "Embed Frameworks" build phase to target
3333
embed_frameworks_build_phase = target.build_phases.find { |build_phase| build_phase.to_s == 'Embed Instabug Framework'}

0 commit comments

Comments
 (0)