mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-02 14:10:40 +00:00
📝 Update script to add brackets to if condition as it did not get evaluated correctly
This commit is contained in:
parent
86beaa7a82
commit
cb47323fd2
2
link.rb
2
link.rb
@ -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'}
|
||||
|
@ -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'}
|
||||
|
Loading…
x
Reference in New Issue
Block a user