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

# objc {#modules.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)

<h2 id="alwayslink_by_default">
  alwayslink\_by\_default
</h2>

```
bool objc.alwayslink_by_default
```

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

<h2 id="builtin_objc_strip_action">
  builtin\_objc\_strip\_action
</h2>

```
bool objc.builtin_objc_strip_action
```

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

<h2 id="copts_for_current_compilation_mode">
  copts\_for\_current\_compilation\_mode
</h2>

```
list objc.copts_for_current_compilation_mode
```

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

<h2 id="disallow_sdk_frameworks_attributes">
  disallow\_sdk\_frameworks\_attributes
</h2>

```
bool objc.disallow_sdk_frameworks_attributes
```

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

<h2 id="strip_executable_safely">
  strip\_executable\_safely
</h2>

```
bool objc.strip_executable_safely
```

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

<h2 id="uses_device_debug_entitlements">
  uses\_device\_debug\_entitlements
</h2>

```
bool objc.uses_device_debug_entitlements
```

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