Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Creating a new build configuration in code? #946

Open
M1ke opened this issue Jun 25, 2024 · 0 comments
Open

Creating a new build configuration in code? #946

M1ke opened this issue Jun 25, 2024 · 0 comments

Comments

@M1ke
Copy link

M1ke commented Jun 25, 2024

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 ...
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant