Extensions > API reference > objc

objc

A configuration fragment for Objective-C.

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.

enable_apple_binary_native_protos

bool objc.enable_apple_binary_native_protos

Returns whether apple_binary should generate and link protos natively.

generate_dsym

bool objc.generate_dsym

Whether to generate debug symbol(.dSYM) artifacts.

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.

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.

simulator_device_for_platform_type

string objc.simulator_device_for_platform_type(platform_type)

The type of device (e.g., 'iPhone 6' to simulate when running on the simulator.

Parameters

Parameter Description
platform_type ; required
The apple platform type.
May return None.

simulator_version_for_platform_type

DottedVersion objc.simulator_version_for_platform_type(platform_type)

The SDK version of the simulator to use when running on the simulator.

Parameters

Parameter Description
platform_type ; required
The apple platform type.
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.