Skip to content

Releases: bazelbuild/rules_apple

0.18.0

09 Aug 19:58
Compare
Choose a tag to compare
  • This release is tested with Bazel 0.28.1
  • Document the tvos_unit_test and tvos_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 and ios_ui_test now accept a frameworks attribute which can link to ios_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 and macos_ui_test now accept a additional_contents attribute which can copy files into specific subdirectories of the Contents folder. (19e97fb)
  • Attributes were documented below rules, but not shown in the signature. (92f13dd)
  • Add explanation that ios_*_test_suite generates a test_suite (but doesn't work like the general test_suite) and adds links between the ios_*_test and ios_*_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 an ios_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:

Please use the rules_apple.0.18.0.tar.gz release asset from your Bazel WORKSPACE.

SHA-256 digest: a045a436b642c70fb0c10ca84ff0fd2dcbd59cc89100d597a61e8374afafb366

Complete list of changes

0.17.2

06 Jun 15:09
Compare
Choose a tag to compare
  • 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

Complete list of changes

0.17.1

05 Jun 17:51
Compare
Choose a tag to compare
  • 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

Complete list of changes

0.17.0

31 May 17:30
Compare
Choose a tag to compare
  • 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:

Please use the rules_apple.0.17.0.tar.gz release asset from your Bazel WORKSPACE.

SHA-256 digest: f9c028cbb69e9dabc40b3c78843c1610ba9624580bfb9975ceffaebdb0751b4c

Complete list of changes

0.16.1

09 May 17:48
Compare
Choose a tag to compare
  • This release is tested with Bazel 0.25.1
  • apple_unit_test and apple_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:

Please use the rules_apple.0.16.1.tar.gz release asset from your Bazel WORKSPACE.

SHA-256 digest: ec5d2ba70595e52b9678674ea3dd3eed85b5d2280e3f74b889c0f248ec1b835a

Complete list of changes

0.15.0

25 Apr 19:57
Compare
Choose a tag to compare
  • 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 to AppleTestRunnerInfo. (7f4cefe)
  • Adds first class support for mlmodel files through a new apple_core_ml_library rule. Check the documentation of apple_core_ml_library for more information. (9c81847)
  • Adds support for executing macos_application targets using bazel run (67a943d) Thanks @rahul-malik!
  • Add support for bazel run for ios_application when using tree artifact outputs (0295c7a) Thanks @rahul-malik!

Thanks to the following contributors:

Please use the rules_apple.0.15.0.tar.gz release asset from your Bazel WORKSPACE.

SHA-256 digest: 23792cd999f97fc97284d1c44cb1324bfdd0bc54aa68ad513fa3705aca3b1f9e

Complete list of changes

0.14.0

08 Mar 17:23
Compare
Choose a tag to compare
  • This release is tested with Bazel 0.23
  • objc_bundle, objc_bundle_library and objc_framework are no longer supported in rules_apple. Please migrate to their new Starlark versions, apple_bundle_import, apple_resource_bundle and apple_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 to AppleTestRunnerInfo, 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 the SwiftSupport dylibs Defaults to true. (545a9f3)
  • New flag --define=apple.compress_ipa=true can be used to add compression to the returned ZIP archive. Defaults to false. (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:

Please use the rules_apple.0.14.0.tar.gz release asset from your Bazel WORKSPACE.

SHA-256 digest: 8f32e2839fba28d549e1670dbed83606dd339a9f7489118e481814d61738270f

Complete list of changes

0.13.0

18 Jan 21:55
Compare
Choose a tag to compare
  • This release is tested with Bazel 0.21.0.
  • Notice: This is the last version that supports objc_framework, objc_bundle and objc_bundle_library. The next version of rules_apple will not support these rules. Please migrate to their Starlark counterparts apple_dynamic_framework_import/apple_static_framework_import, apple_bundle_import and apple_resource_bundle.
  • Codesigning now supports multiple identities in provisioning profiles. (Thanks @steeve!)
  • The resources and structured_resources attribute in swift_library have been removed and won't be processed for resource propagation. Please move those resources to the data 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 for ios_unit_test targets, please create an ios_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

03 Jan 14:09
Compare
Choose a tag to compare
  • This release is tested with Bazel 0.21.0.
  • apple_genrule has been removed from rules_apple. Please load it from its new location in apple_support.
    • To load the new apple_genrule, use load("@build_bazel_apple_support//rules:apple_genrule.bzl", "apple_genrule")
  • macos_application and macos_bundle is deprecating the product_type attribute. To create macOS Kernel Extensions, Spotlight Importers and XPCServices, use macos_kernel_extension, macos_spotlight_importer and macos_xpc_service instead. The product_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

20 Dec 18:55
Compare
Choose a tag to compare

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.