Skip to content

Commit 7b4c897

Browse files
authored
🤝 Merge pull request #96 from Instabug/fix/fix_targets_in_linking_script
📝 Replace and with &&
2 parents 5772546 + 0618aca commit 7b4c897

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 and (target.product_type == "com.apple.product-type.application") and (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 and (target.product_type == "com.apple.product-type.application") and (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)