> ## Documentation Index
> Fetch the complete documentation index at: https://bazel-pr-29716.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# objc

A configuration fragment for Objective-C.

## Members

* [alwayslink\_by\_default](#alwayslink_by_default)
* [builtin\_objc\_strip\_action](#builtin_objc_strip_action)
* [copts\_for\_current\_compilation\_mode](#copts_for_current_compilation_mode)
* [disallow\_sdk\_frameworks\_attributes](#disallow_sdk_frameworks_attributes)
* [strip\_executable\_safely](#strip_executable_safely)
* [uses\_device\_debug\_entitlements](#uses_device_debug_entitlements)

## alwayslink\_by\_default

```
bool objc.alwayslink_by_default
```

Returns whether objc\_library and objc\_import should default to alwayslink=True.

## builtin\_objc\_strip\_action

```
bool objc.builtin_objc_strip_action
```

Returns whether to emit a strip action as part of objc linking.

## copts\_for\_current\_compilation\_mode

```
list objc.copts_for_current_compilation_mode
```

Returns a list of default options to use for compiling Objective-C in the current mode.

## disallow\_sdk\_frameworks\_attributes

```
bool objc.disallow_sdk_frameworks_attributes
```

Returns whether sdk\_frameworks and weak\_sdk\_frameworks are disallowed attributes.

## strip\_executable\_safely

```
bool objc.strip_executable_safely
```

Returns whether executable strip action should use flag -x, which does not break dynamic symbol resolution.

## uses\_device\_debug\_entitlements

```
bool objc.uses_device_debug_entitlements
```

Returns whether device debug entitlements should be included when signing an application.
