Last active
January 3, 2020 12:45
-
-
Save WiesnerPeti/47ef4c530d78e90624b0171eae8a4454 to your computer and use it in GitHub Desktop.
Revisions
-
Peter Adam Wiesner revised this gist
Jan 3, 2020 . No changes.There are no files selected for viewing
-
Peter Adam Wiesner created this gist
Jan 3, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ post_install do |installer| installer.aggregate_targets.each do |aggregate_target| if aggregate_target.name == "YOUR_TARGET" aggregate_target.xcconfigs.each do |config_name, config_file| #Example to get and set attributes frameworkSearchPaths = config_file.attributes["FRAMEWORK_SEARCH_PATHS"] config_file.attributes["FRAMEWORK_SEARCH_PATHS[sdk=iphoneos*]"] = frameworkSearchPaths #Example to delete attributes config_file.attributes.delete("FRAMEWORK_SEARCH_PATHS") #Example to delete linker flags config_file.other_linker_flags.clear #Example to save changes xcconfig_path = aggregate_target.xcconfig_path(config_name) config_file.save_as(xcconfig_path) end end end end