Skip to content

Commit

Permalink
Update build configuration list for PBXNativeTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeloAvv authored Apr 2, 2024
1 parent fea691e commit 1db98ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions assets/scripts/darwin/add_build_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
config_mode = mode.downcase == 'debug' ? :debug : :release
file_ref = project.files.detect { |file| file.path == file_path }

# Build configuration list for PBXNativeTarget "Runner"
native_target = project.native_targets.first
target_config = native_target.add_build_configuration(config_name, config_mode)
target_config.base_configuration_reference = file_ref
target_config.build_settings = {
'PRODUCT_NAME' => '$(TARGET_NAME)',
}

# Build configuration list for PBXProject "Runner"
base_config = project.build_configuration_list.build_configurations.detect { |config| config.name == mode }
build_config = project.add_build_configuration(config_name, config_mode)
Expand Down

0 comments on commit 1db98ce

Please sign in to comment.