I can see how the code can iterate over existing build configurations but not how to make a new one. For example I tried the following:
build_configurations = [
# Pick some specific items per config
{'name' => "MyConfig"},
# more configs here
]
target = project.targets[0]
build_configurations.each do |config|
# Define defaults for all configs
config['isa'] = "XCBuildConfiguration"
project.targets.first.build_configurations.push(config)
end
project.save
But I receive the error
`nested_object_for_hash': undefined method `uuid' for ...
I can see how the code can iterate over existing build configurations but not how to make a new one. For example I tried the following:
But I receive the error