apple_precompiled_resource_bundle(
name = "SnapshotsData",
bundle_id = "com.jflan.SnapshotsData",
bundle_name = "Snapshots",
infoplists = ["Info.plist],
structured_resources = snapshot_images,
tags = ["manual"],
)
ios_unit_test(
name = "UnitTests",
data = [":SnapshotsData"], # has to be `resources` to work with `test_host`
minimum_os_version = minimum_os_version,
runner = test_runner,
test_host = "//MyApp",
visibility = ["//visibility:public"],
deps = [":UnitTests.library"],
)
Resource bundles provided as
dataarguments toios_unit_tests aren't bundled into the final.xctestbundle when usingtest_host.It is included if
test_hostisNoneor if the bundle is provided to theresourcesargument instead.