📝 Remove framework path from all configurations when unlinking

This commit is contained in:
Salma ElTarzi 2017-10-18 13:51:40 +02:00
parent 53bd3b6f54
commit e4ce1f70c5
2 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -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