@@ -61,6 +61,7 @@ I am referenced by a resource only objc_library;
6161EOF
6262
6363 cat > app/BUILD << EOF
64+ load("@build_bazel_rules_apple//apple:apple_archive.bzl", "apple_archive")
6465load("@build_bazel_rules_apple//apple:ios.bzl",
6566 "ios_application", "ios_framework")
6667load("@rules_cc//cc:objc_library.bzl", "objc_library")
@@ -137,9 +138,14 @@ ios_application(
137138 strings = ["app.strings"],
138139 deps = [":app_lib"],
139140)
141+
142+ apple_archive(
143+ name = "ipa_app",
144+ bundle = ":app",
145+ )
140146EOF
141147
142- do_build ios //app:app || fail " Should build"
148+ do_build ios //app:ipa_app || fail " Should build"
143149
144150 # Verify framework has resources
145151 assert_assets_contains " test-bin/app/app.ipa" \
@@ -214,9 +220,14 @@ ios_application(
214220 strings = ["app.strings"],
215221 deps = [":app_lib_with_no_direct_resources"],
216222)
223+
224+ apple_archive(
225+ name = "ipa_app",
226+ bundle = ":app",
227+ )
217228EOF
218229
219- do_build ios //app:app || fail " Should build"
230+ do_build ios //app:ipa_app || fail " Should build"
220231
221232 # This is a tricky corner case, in which a resource only lib is depended by
222233 # dependency chains that contain no other resources. In this very specific
@@ -252,9 +263,14 @@ ios_application(
252263 minimum_os_version = "${MIN_OS_IOS} ",
253264 deps = [":resource_only_lib", ":shared_lib", ":only_main_lib"],
254265)
266+
267+ apple_archive(
268+ name = "ipa_app",
269+ bundle = ":app",
270+ )
255271EOF
256272
257- do_build ios //app:app || fail " Should build"
273+ do_build ios //app:ipa_app || fail " Should build"
258274
259275 # Verify that the resource is in the framework.
260276 assert_zip_contains " test-bin/app/app.ipa" \
0 commit comments