Skip to content

Commit

Permalink
🤝 Merge pull request #96 from Instabug/fix/fix_targets_in_linking_script
Browse files Browse the repository at this point in the history
📝 Replace and with &&
  • Loading branch information
salmatarzi authored Nov 30, 2017
2 parents 5772546 + 0618aca commit 7b4c897
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand Down
2 changes: 1 addition & 1 deletion unlink.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand Down

0 comments on commit 7b4c897

Please sign in to comment.