mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-03 14:40:54 +00:00
📝 Remove framework path from all configurations when unlinking
This commit is contained in:
parent
53bd3b6f54
commit
e4ce1f70c5
2
link.rb
2
link.rb
@ -44,7 +44,7 @@ target.build_configurations.each do |config|
|
|||||||
framework_search_paths = [framework_search_paths] unless framework_search_paths.is_a?(Array)
|
framework_search_paths = [framework_search_paths] unless framework_search_paths.is_a?(Array)
|
||||||
framework_search_paths << framework_root unless framework_search_paths.include? framework_root
|
framework_search_paths << framework_root unless framework_search_paths.include? framework_root
|
||||||
|
|
||||||
target.build_settings(config)['FRAMEWORK_SEARCH_PATHS'] = framework_search_paths
|
target.build_settings(config.name)['FRAMEWORK_SEARCH_PATHS'] = framework_search_paths
|
||||||
end
|
end
|
||||||
|
|
||||||
# Add framework to target as "Embedded Frameworks"
|
# Add framework to target as "Embedded Frameworks"
|
||||||
|
@ -29,8 +29,8 @@ Kernel.exit(0) unless embed_frameworks_build_phase
|
|||||||
target.build_phases.delete(embed_frameworks_build_phase)
|
target.build_phases.delete(embed_frameworks_build_phase)
|
||||||
|
|
||||||
# Remove framework search path from target
|
# Remove framework search path from target
|
||||||
['Debug', 'Release'].each do |config|
|
target.build_configurations.each do |config|
|
||||||
target.build_settings(config)['FRAMEWORK_SEARCH_PATHS'].delete(framework_root)
|
target.build_settings(config.name)['FRAMEWORK_SEARCH_PATHS'].delete(framework_root)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Remove framework from target from "Embedded Frameworks"
|
# Remove framework from target from "Embedded Frameworks"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user