Releases: bazelbuild/rules_apple
0.18.0
- This release is tested with Bazel 0.28.1
- Document the
tvos_unit_tes
t andtvos_ui_test
rules. (736c72a) - Refactored
AppleResourceInfo
provider to reduce memory consumption. (e424bbe) - The
apple.trim_lproj_locales
flag strips any.lproj
folders that don't have a matching.lproj
folder in the base of the app(e.g. bundles from Frameworks that are localized). (db0bfa0) ios_unit_test
andios_ui_test
now accept aframeworks
attribute which can link toios_framework
targets. This allows sharing of code and resources across multiple test targets that contain common dependencies, and avoids the duplicate processing actions for those. (9089a84)macos_unit_tests
andmacos_ui_tes
t now accept aadditional_contents
attribute which can copy files into specific subdirectories of theContents
folder. (19e97fb)- Attributes were documented below rules, but not shown in the signature. (92f13dd)
- Add explanation that
ios_*_test_suite
generates atest_suite
(but doesn't work like the generaltest_suite
) and adds links between theios_*_test
andios_*_test_suite
rules with notes on usage. (2d45901) - Adding a new 'resources' field to all Apple rules that support bundling. The resources attribute is used for adding files to the bundles resouce list that are not otherise associated with any objc_library or swift_library. The resources will be made available in the resulting binaries resources folder. For example, a
macos_application
would include the resources in the<name>.app/Contents/Resources
folder and anios_application
would include the resources in the<name>.app/Resources
folder. (fcf48b0) - The environment contents of the
Info.plist
have been extracted into shared targets per platform so that their output can be cached and reused across multiple targets. (4d41364) Thanks @keith!
Thanks to the following contributors:
- Dave Lee (@kastiglione): 85b7656, 8fea6c5, 0d70916
- Keith Smiley (@keith): 0e8f3a8, 34d0ae9, 31ab705, a306afe, ec7b146, 0b334c4, 10066c5, 4d41364, 9e7b03e, 21ee6d9, c24c564, 1d23ae3
- Thi Doãn (@thii): 87c6481, 6c965fb
Please use the rules_apple.0.18.0.tar.gz
release asset from your Bazel WORKSPACE
.
SHA-256 digest: a045a436b642c70fb0c10ca84ff0fd2dcbd59cc89100d597a61e8374afafb366
0.17.2
- This release is tested with Bazel 0.26
- Small cleanups within the rules for compatibility with future Bazel releases.
Please use the rules_apple.0.17.2.tar.gz
release asset from your Bazel WORKSPACE
.
SHA-256 digest: 6efdde60c91724a2be7f89b0c0a64f01138a45e63ba5add2dca2645d981d23a1
0.17.1
- This release is tested with Bazel 0.26
- Update the
rules_swift
dependency.
Please use the rules_apple.0.17.1.tar.gz
release asset from your Bazel WORKSPACE
.
SHA-256 digest: c663661a21c1ceaae98765fd7ec3d15775117b3c15bce99d1135e05e345cc0aa
0.17.0
- This release is tested with Bazel 0.26.0
- Some structured_resource files were incorrectly being processed (e.g. storyboards). This change fixes that incorrect behavior. (0647172)
- Fix application_extension linkopt into -fapplication-extension. (8a7a7cb)
Thanks to the following contributors:
- Danny Weinberg (@FuegoFro): 3160155
- Keith Smiley (@keith): 0a0b09a, 4ca81b6, 0f02b89
- Steeve Morin (@steeve): 3b11054
- Thi Doãn (@thii): 7d55b72, 59b8fd1
Please use the rules_apple.0.17.0.tar.gz
release asset from your Bazel WORKSPACE
.
SHA-256 digest: f9c028cbb69e9dabc40b3c78843c1610ba9624580bfb9975ceffaebdb0751b4c
0.16.1
- This release is tested with Bazel 0.25.1
apple_unit_test
andapple_ui_test
rules no longer exist. They have been replaced with platform specific rules (e.g.ios_unit_test
,macos_ui_test
). (85ba2d1)- Add support for returning the debug symbol outputs for dependencies using the
--output_groups=+debug_symbols
flag. (This replaces the--define=apple.propagate_embedded_extra_outputs=1
flag) (a06750b)
Thanks to the following contributors:
- Dave Lee (@kastiglione): 545d470
- Keith Smiley (@keith): 65d3bf7
Please use the rules_apple.0.16.1.tar.gz
release asset from your Bazel WORKSPACE
.
SHA-256 digest: ec5d2ba70595e52b9678674ea3dd3eed85b5d2280e3f74b889c0f248ec1b835a
0.15.0
- This release is tested with Bazel 0.24.1
- Add a macos_quick_look_plugin() rule for Quick Look plugin support. (1f8f67b)
- The
AppleTestRunner
alias has been removed, usages should have migrated toAppleTestRunnerInfo
. (7f4cefe) - Adds first class support for
mlmodel
files through a newapple_core_ml_library
rule. Check the documentation ofapple_core_ml_library
for more information. (9c81847) - Adds support for executing
macos_application
targets usingbazel run
(67a943d) Thanks @rahul-malik! - Add support for
bazel run
forios_application
when using tree artifact outputs (0295c7a) Thanks @rahul-malik!
Thanks to the following contributors:
- Dave Lee (@kastiglione): bca0519
- Keith Smiley (@keith): 21bf87e, 0692494, 8b8058f, b5280b6, b66270a, 4fdf68e
- Rahul Malik (@rahul-malik): 88c1ce2, 67a943d, 0295c7a, 5053522
- Shawn Chen (@chenxiao0228): 330cbfd
- Xiao Chen (@chenxiao0228): dd031c5, a291eaa
Please use the rules_apple.0.15.0.tar.gz
release asset from your Bazel WORKSPACE
.
SHA-256 digest: 23792cd999f97fc97284d1c44cb1324bfdd0bc54aa68ad513fa3705aca3b1f9e
0.14.0
- This release is tested with Bazel 0.23
objc_bundle
,objc_bundle_library
andobjc_framework
are no longer supported in rules_apple. Please migrate to their new Starlark versions,apple_bundle_import
,apple_resource_bundle
andapple_dynamic_framework_import
/apple_static_framework_import
respectively. (a06b11e)- Add an explicit
minimum_os_version
to all apple target tests. (b8f74f3) - Add
tvos_framework
rule implementation. (33bd2c6) - Add
tvos_unit_test
rule implementation. (c1d2248) minimum_os_version
is now a required attribute for all Apple rules that accept it. (72a20ac)AppleTestRunner
has been renamed toAppleTestRunnerInfo
, the alias will be removed in the next release. (cb1010f)- Add
tvos_ui_test
rule implementation. (9196015) - New
AppleBinaryInfo
provider is available from rules creating binary files (e.g.macos_command_line_application
). (4661129) - New flag
--define=apple.package_swift_support=false
can be used to stop packaging theSwiftSupport
dylibs Defaults totrue
. (545a9f3) - New flag
--define=apple.compress_ipa=true
can be used to add compression to the returned ZIP archive. Defaults tofalse
. (bc915b1) - Adds support for building Swift apps with Xcode 10.2 so that the system Swift dylibs can be used instead. (cac9773)
Thanks to the following contributors:
- cclauss ([email protected]): 20538dc
- Josh Faust (@jfaust): cc4ce0b
- Keith Smiley (@keith): 051fde4, f672c22, a20fa3b, 61fc7d1, c920f11, 579752c, 473873b, dd9ce3f, 0b4a8ec, 4f1a3b8
- zhangxinzheng (@xinzhengzhang): e25a29b
Please use the rules_apple.0.14.0.tar.gz
release asset from your Bazel WORKSPACE
.
SHA-256 digest: 8f32e2839fba28d549e1670dbed83606dd339a9f7489118e481814d61738270f
0.13.0
- This release is tested with Bazel 0.21.0.
- Notice: This is the last version that supports
objc_framework
,objc_bundle
andobjc_bundle_library
. The next version of rules_apple will not support these rules. Please migrate to their Starlark counterpartsapple_dynamic_framework_import
/apple_static_framework_import
,apple_bundle_import
andapple_resource_bundle
. - Codesigning now supports multiple identities in provisioning profiles. (Thanks @steeve!)
- The
resources
andstructured_resources
attribute inswift_library
have been removed and won't be processed for resource propagation. Please move those resources to thedata
attribute instead. - Adds experimental support for tree artifact outputs under the
--define=apple.experimental.tree_artifact_outputs=1
flag. Please note that this works only for building Apple targets, and Bazel tests are not currently supported. The latest commit of Tulsi supports usage of this flag for building and testing. - The
@build_bazel_rules_apple//apple/testing/default_host/ios
target has been removed. If you were using it as the test host forios_unit_test
targets, please create anios_application
target in your repository instead. macos_extension
now uses the Starlark linking API.- Test rules now use the Starlark linking API.
- Entitlement validation logic will also validate the
aps-environment
setting (thanks @keith!). - Multiple minor bug fixes, cleanups and improvements (thanks @keith and @steeve!)
Complete list of changes between 0.12.0 and 0.13.0.
0.12.0
- This release is tested with Bazel 0.21.0.
apple_genrule
has been removed fromrules_apple
. Please load it from its new location inapple_support
.- To load the new
apple_genrule
, useload("@build_bazel_apple_support//rules:apple_genrule.bzl", "apple_genrule")
- To load the new
macos_application
andmacos_bundle
is deprecating theproduct_type
attribute. To create macOS Kernel Extensions, Spotlight Importers and XPCServices, usemacos_kernel_extension
,macos_spotlight_importer
andmacos_xpc_service
instead. Theproduct_type
attribute will be removed in a subsequent release.- Multiple bug fixes and cleanups.
Complete list of changes between 0.11.1 and 0.12.0.
0.11.1
This is a patch release over 0.11.0.
- This release is tested with Bazel 0.20.0 and 0.21.0.
- Fixes an issue with entitlement validation regarding Associated Domains wildcard values.
Complete list of changes between 0.11.0 and 0.11.1.