📝 Update script to add brackets to if condition as it did not get evaluated correctly

This commit is contained in:
Salma ElTarzi 2017-12-05 11:08:27 +02:00
parent 86beaa7a82
commit cb47323fd2
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ framework_ref = frameworks_group.new_file("#{framework_root}/#{framework_name}")
# Add Instabug to every target that is of type application
targets.each do |target|
if target.is_a? Xcodeproj::Project::Object::PBXNativeTarget && (target.product_type == "com.apple.product-type.application") && (target.platform_name == :ios)
if (target.is_a? Xcodeproj::Project::Object::PBXNativeTarget) && (target.product_type == "com.apple.product-type.application") && (target.platform_name == :ios)
# Add new "Embed Frameworks" build phase to target
embed_frameworks_build_phase = target.build_phases.find { |build_phase| build_phase.to_s == 'Embed Instabug Framework'}

View File

@ -27,7 +27,7 @@ frameworks_group.children.delete(framework_ref)
# Remove Instabug to every target that is of type application
targets.each do |target|
if target.is_a? Xcodeproj::Project::Object::PBXNativeTarget && (target.product_type == "com.apple.product-type.application") && (target.platform_name == :ios)
if (target.is_a? Xcodeproj::Project::Object::PBXNativeTarget) && (target.product_type == "com.apple.product-type.application") && (target.platform_name == :ios)
# Remove "Embed Frameworks" build phase to target
embed_frameworks_build_phase = target.build_phases.find { |build_phase| build_phase.to_s == 'Embed Instabug Framework'}