Releases: bazelbuild/rules_apple
1.1.3
- Add test filter parameter to
ios_unit_test
(#1739) - Strip bitcode from stub binaries (#1705)
- Require
bundle_id
onapple_xcframework
(#1701) - Add watchOS framework support
- Fix
watchos_static_framework
for arm64 simulator (#1688) - Add missing
dsym_binaries
assignments (#1686) - Add
apple_symbols_file_partial
to more rules (#1685) - Add
codesigning_dossier_partial
to*_dynamic_framework
rules (#1684) - Add
bundle_only
support everywhere (#1683) - Fix returned provider for watchOS frameworks (#1682)
- Set
AppleBundleInfo.extension_safe
(#1675)
This release is compatible with 5.x LTS releases.
Please use the release asset from your Bazel WORKSPACE instead of
GitHub's asset to reduce download size and improve reproducibility.
SHA-256 digest: f94e6dddf74739ef5cb30f000e13a2a613f6ebfa5e63588305a71fce8a8a9911
Workspace snippet
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "build_bazel_rules_apple",
sha256 = "f94e6dddf74739ef5cb30f000e13a2a613f6ebfa5e63588305a71fce8a8a9911",
url = "https://github.com/bazelbuild/rules_apple/releases/download/1.1.3/rules_apple.1.1.3.tar.gz",
)
load(
"@build_bazel_rules_apple//apple:repositories.bzl",
"apple_rules_dependencies",
)
apple_rules_dependencies()
load(
"@build_bazel_rules_swift//swift:repositories.bzl",
"swift_rules_dependencies",
)
swift_rules_dependencies()
load(
"@build_bazel_rules_swift//swift:extras.bzl",
"swift_rules_extra_dependencies",
)
swift_rules_extra_dependencies()
load(
"@build_bazel_apple_support//lib:repositories.bzl",
"apple_support_dependencies",
)
apple_support_dependencies()
1.1.2
- Add WKWatchKitApp key by default to legacy watchOS 2 application bundles hosting an extension
- Upgrade
apple_support
to 1.3.1 - Upgrade
rules_swift
to 1.2.0
This release is compatible with 5.x LTS releases.
Please use the release asset from your Bazel WORKSPACE instead of
GitHub's asset to reduce download size and improve reproducibility.
SHA-256 digest: 90e3b5e8ff942be134e64a83499974203ea64797fd620eddeb71b3a8e1bff681
Workspace snippet
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "build_bazel_rules_apple",
sha256 = "90e3b5e8ff942be134e64a83499974203ea64797fd620eddeb71b3a8e1bff681",
url = "https://github.com/bazelbuild/rules_apple/releases/download/1.1.2/rules_apple.1.1.2.tar.gz",
)
load(
"@build_bazel_rules_apple//apple:repositories.bzl",
"apple_rules_dependencies",
)
apple_rules_dependencies()
load(
"@build_bazel_rules_swift//swift:repositories.bzl",
"swift_rules_dependencies",
)
swift_rules_dependencies()
load(
"@build_bazel_rules_swift//swift:extras.bzl",
"swift_rules_extra_dependencies",
)
swift_rules_extra_dependencies()
load(
"@build_bazel_apple_support//lib:repositories.bzl",
"apple_support_dependencies",
)
apple_support_dependencies()
1.1.1
- Upgrade
rules_swift
to 1.1.1 - Add support for watchOS App Extensions, thanks @BalestraPatrick!
- Fix
watchos_unit_test
incorrect handling oftest_host
- This release is compatible with 5.x LTS releases
Please use the release asset from your Bazel WORKSPACE instead of
GitHub's asset to reduce download size and improve reproducibility.
SHA-256 digest: a19cf84dd060eda50be9ba5b0eca88377e0306ffbc1cc059df6a6947e48ac61a
1.1.0
- Upgrade
apple_support
to 1.3.0 - Upgrade
rules_swift
to 1.1.0 - Fix rpath for application extensions
- Add
apple.swizzle_absolute_xcttestsourcelocation
feature - This release is compatible with 5.x LTS releases
Please use the release asset from your Bazel WORKSPACE instead of
GitHub's asset to reduce download size and improve reproducibility.
SHA-256 digest: f003875c248544009c8e8ae03906bbdacb970bc3e5931b40cd76cadeded99632
1.0.1
- Fix rules_swift and apple_support pins to point to their 1.0.0 releases
- This release is compatible with 5.x LTS and bazel 6.x rolling releases
Please use the release asset from your Bazel WORKSPACE instead of
GitHub's asset to reduce download size and improve reproducibility.
SHA-256 digest: 36072d4f3614d309d6a703da0dfe48684ec4c65a89611aeb9590b45af7a3e592
1.0.0
- Add
apple_static_xcframework
rule for creating distributable xcframeworks that contain static frameworks (only supported on bazel 6.x). See the docs for usage examples - Add
local_provisioning_profile
rule for automatically discovering provisioning profiles installed on the machine. See the docs for usage examples - Add support for CoreML
mlpackage
files, thanks @a2! - Add
swift_apple_core_ml_library
for generating Swift source for CoreML models, thanks @a2! - Emit result bundles for macOS unit tests, thanks @sebastianv1!
- Add
forced_cpus
toapple_universal_binary
to support always building fat binaries - Fix dSYM filename with custom executable names, thanks @rsahara!
- Switch to standard semver release versioning
- This release is compatible with 5.x LTS and bazel 6.x rolling releases
Thanks to @brentleyjones, @mattrobmattrob, @BalestraPatrick, @thii, and everyone else above who contributed to this release!
Please use the release asset from your Bazel WORKSPACE instead of
GitHub's asset to reduce download size and improve reproducibility.
SHA-256 digest: f5f4084830a7aac2b4c5fb4e9faa0f781fcf1d43e4282a015768e18f3daff603
0.34.2
- Fix compatibility with bazel removing
_j2objc_dead_code_pruner
at HEAD. - Add support for
--test_env=COVERAGE_PRODUCE_JSON=1
to generate json coverage output when running tests, thanks @maxwellE - Add
tvos_sim_arm64
config setting, thanks @dflems - Fix test iOS coverage support on M1s
- This release is compatible with 5.x LTS and bazel 6.x rolling releases
Please use the release asset from your Bazel WORKSPACE instead of
GitHub's asset to reduce download size and improve reproducibility.
SHA-256 digest: 12865e5944f09d16364aa78050366aca9dc35a32a018fa35f5950238b08bf744
0.34.0
- Add support for importing xcframeworks, see the docs for usage. Thanks @thii!
- Add support for reusing a single iOS simulator for testing using
--test_env=REUSE_GLOBAL_SIMULATOR=1
. It's recommended you pass--local_test_jobs=1
when using this feature to avoid any races between multiple test bundles attempting to run on the simulator at the same time - Fix openssl command default change on macOS 12.3, thanks @tnek!
- Fix complicationset usage, thanks @BalestraPatrick!
- Add support for running iOS unit tests on device with
--test_arg=--destination=platform=ios_device,id=YOUR_DEVICE_UDID
- Add support for
bazel coverage
in iOS and macOS tests - Add support for skipping iOS unit tests using
--test_filter=-FeatureTests/someTest
, thanks @birwin93! - Set
TEST_SRCDIR
in iOS unit tests environment - Fix bazel 6.x support for breaking API changes in bazel
- Fix swift-stdlib-tool usage for upstream Swift bugs
- Fix watchos_x86_64 support, thanks @dflems!
- Update xctestrunner and rules_swift
- This release is compatible with 5.x LTS and bazel 6.x rolling releases
Please use the release asset from your Bazel WORKSPACE instead of
GitHub's asset to reduce download size and improve reproducibility.
SHA-256 digest: 4161b2283f80f33b93579627c3bd846169b2d58848b0ffb29b5d4db35263156a
0.33.0
- Switch default iOS simulator CPU to match host arch for M1 support (pass
--ios_multi_cpus=x86_64
if you need the previous behavior) - Add support for backdeployed Swift concurrency libraries
- Update xctestrunner
- Add
additional_linker_inputs
to some rules - Add rule for producing xcframeworks for iOS
- Add
universal_apple_binary
rule for multi-arch binaries - Add some more entitlements file validation
- Remove use of ObjcProvider.headers, which has been removed from bazel HEAD
- Thanks to @brentleyjones and @thii for many contributions
- This release was tested with Bazel 5.0.0
Please use the release asset from your Bazel WORKSPACE instead of
GitHub's asset to reduce download size and improve reproducibility.
SHA-256 digest: a5f00fd89eff67291f6cd3efdc8fad30f4727e6ebb90718f3f05bbf3c3dd5ed7
0.32.0
- Breaking:
--define=apple.package_symbols
was removed and replaced with settinginclude_symbols_in_bundle
on the top level bundle target, such asios_application
instead - Enabled passing
--test_arg=--coommand_line_args=arg
to pass extra arguments through toxctestrunner
, thanks @ra1028! - Update xctestrunner to support newer python versions
- Add
watchos_unit_test
andwatchos_ui_test
rules - Add support for smartcard identities, thanks @thiagohmcruz!
- Add bundle_id parameter to apple_resource_bundle, thanks @steeve!
- Fix
macos_unit_test
on M1 macs, thanks @Aigeruth! - Add optional
minimum_deployment_os_version
attribute, see #1099 for details - Add
apple.skip_codesign_simulator_bundles
feature to skip codesigning on specific targets. This will eventually replaceapple.codesign_simulator_bundles
- Add
ios_sim_arm64
architecture support for building for the arm64 simulator (requires bazel 5.0) - This release is tested with Bazel 5.x
- NOTE: This is likely the final release that will support bazel 4.x
Please use the release asset from your Bazel WORKSPACE instead of
GitHub's asset to reduce download size and improve reproducibility.
SHA-256 digest: 77e8bf6fda706f420a55874ae6ee4df0c9d95da6c7838228b26910fc82eea5a2