blob: e70cf98791a19ce8fab251560e33fd453826830d [file]
---
title: 'objc'
---
A configuration fragment for Objective-C.
## Members
* [alwayslink\_by\_default](#alwayslink_by_default)
* [copts](#copts)
* [copts\_for\_current\_compilation\_mode](#copts_for_current_compilation_mode)
* [disallow\_sdk\_frameworks\_attributes](#disallow_sdk_frameworks_attributes)
* [generate\_linkmap](#generate_linkmap)
* [ios\_simulator\_device](#ios_simulator_device)
* [ios\_simulator\_version](#ios_simulator_version)
* [run\_memleaks](#run_memleaks)
* [should\_strip\_binary](#should_strip_binary)
* [signing\_certificate\_name](#signing_certificate_name)
* [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.
## copts
```
list objc.copts
```
Returns a list of options to use for compiling Objective-C.These options are applied after any default options but before options specified in the attributes of the rule.
## 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.
## generate\_linkmap
```
bool objc.generate_linkmap
```
Whether to generate linkmap artifacts.
## ios\_simulator\_device
```
string objc.ios_simulator_device
```
The type of device (e.g. 'iPhone 6') to use when running on the simulator.
May return `None`.
## ios\_simulator\_version
```
DottedVersion objc.ios_simulator_version
```
The SDK version of the iOS simulator to use when running on the simulator.
May return `None`.
## run\_memleaks
```
bool objc.run_memleaks
```
Returns a boolean indicating whether memleaks should be run during tests or not.
## should\_strip\_binary
```
bool objc.should_strip_binary
```
Returns whether to perform symbol and dead-code strippings on linked binaries.
## signing\_certificate\_name
```
string objc.signing_certificate_name
```
Returns the flag-supplied certificate name to be used in signing, or None if no such certificate was specified.
May return `None`.
## uses\_device\_debug\_entitlements
```
bool objc.uses_device_debug_entitlements
```
Returns whether device debug entitlements should be included when signing an application.