diff --git a/link.rb b/link.rb index fb81e8e8c..998d307d6 100644 --- a/link.rb +++ b/link.rb @@ -31,7 +31,7 @@ # 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'} diff --git a/unlink.rb b/unlink.rb index 90f1bc896..fa4952081 100644 --- a/unlink.rb +++ b/unlink.rb @@ -27,7 +27,7 @@ # 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'}