IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/objc
You can read about the migration, and let us know what you think.
Extensions >
API reference >
objc
objc
A configuration fragment for Objective-C.Members
copts
list objc.coptsReturns 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_modeReturns a list of default options to use for compiling Objective-C in the current mode.
generate_linkmap
bool objc.generate_linkmapWhether to generate linkmap artifacts.
ios_simulator_device
string objc.ios_simulator_deviceThe type of device (e.g. 'iPhone 6') to use when running on the simulator. May return
None
.
ios_simulator_version
DottedVersion objc.ios_simulator_versionThe SDK version of the iOS simulator to use when running on the simulator. May return
None
.
run_memleaks
bool objc.run_memleaksReturns a boolean indicating whether memleaks should be run during tests or not.
should_strip_binary
bool objc.should_strip_binaryReturns whether to perform symbol and dead-code strippings on linked binaries.
signing_certificate_name
string objc.signing_certificate_nameReturns 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. |
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. |
None
.
uses_device_debug_entitlements
bool objc.uses_device_debug_entitlementsReturns whether device debug entitlements should be included when signing an application.