Skip to content

Instantly share code, notes, and snippets.

@alloy
Created March 15, 2013 10:49
Show Gist options
  • Save alloy/5168971 to your computer and use it in GitHub Desktop.
Save alloy/5168971 to your computer and use it in GitHub Desktop.
# TODO First try it like below and check if Xcode is happy with the result.
# I don’t remember if the new config /has/ to be defined on the project-level as well.
# Add a duplicate of the target-level Release config to each target.
project.targets.each do |target|
build_config = project.new(Xcodeproj::Project::XCBuildConfiguration)
build_config.name = 'AdHoc'
build_config.build_settings = target.build_settings('Release')
target.build_configurations << build_config
end
@alloy
Copy link
Author

alloy commented Mar 15, 2013

This is untested code btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment