📝 Replace and with &&

This commit is contained in:
Salma ElTarzi 2017-11-30 15:12:32 +02:00
parent 5bfccf472d
commit 0618acae7c
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 and (target.product_type == "com.apple.product-type.application") and (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 and (target.product_type == "com.apple.product-type.application") and (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'}