Skip to content

Proper way to modify buildSettings #3209

@zlrs

Description

@zlrs

I'd like to change the build settings of a target. (specifically SWIFT_OBJC_INTEROP_MODE)

I randomly tried some ways like this, but they failed to work. (Error: com.google.devtools.build.lib.packages.NoSuchTargetException: no such target '//ios:buildSettings': target 'buildSettings' )

xcodeproj(
    name = "xcodeproj",
    build_mode = "bazel",
    project_name = "client",
    tags = ["manual"],
    top_level_targets = [
        ":client",
    ],
    xcode_configurations = {
        "Debug": {
            "buildSettings": {
                "SWIFT_OBJC_INTEROP_MODE": "objcxx",
            }
        }
    },
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions