mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-02 14:10:40 +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_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
|
||||
|
||||
# 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)
|
||||
|
||||
# Remove framework search path from target
|
||||
['Debug', 'Release'].each do |config|
|
||||
target.build_settings(config)['FRAMEWORK_SEARCH_PATHS'].delete(framework_root)
|
||||
target.build_configurations.each do |config|
|
||||
target.build_settings(config.name)['FRAMEWORK_SEARCH_PATHS'].delete(framework_root)
|
||||
end
|
||||
|
||||
# Remove framework from target from "Embedded Frameworks"
|
||||
@ -43,4 +43,4 @@ shell_script_build_phase = target.shell_script_build_phases.find { |build_phase|
|
||||
target.build_phases.delete(shell_script_build_phase)
|
||||
|
||||
# Save Xcode project
|
||||
project.save
|
||||
project.save
|
||||
|
Loading…
x
Reference in New Issue
Block a user