@@ -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")
6667
@@ -136,9 +137,14 @@ ios_application(
136137 strings = ["app.strings"],
137138 deps = [":app_lib"],
138139)
140+
141+ apple_archive(
142+ name = "ipa_app",
143+ bundle = ":app",
144+ )
139145EOF
140146
141- do_build ios //app:app || fail " Should build"
147+ do_build ios //app:ipa_app || fail " Should build"
142148
143149 # Verify framework has resources
144150 assert_assets_contains " test-bin/app/app.ipa" \
@@ -213,9 +219,14 @@ ios_application(
213219 strings = ["app.strings"],
214220 deps = [":app_lib_with_no_direct_resources"],
215221)
222+
223+ apple_archive(
224+ name = "ipa_app",
225+ bundle = ":app",
226+ )
216227EOF
217228
218- do_build ios //app:app || fail " Should build"
229+ do_build ios //app:ipa_app || fail " Should build"
219230
220231 # This is a tricky corner case, in which a resource only lib is depended by
221232 # dependency chains that contain no other resources. In this very specific
@@ -251,9 +262,14 @@ ios_application(
251262 minimum_os_version = "${MIN_OS_IOS} ",
252263 deps = [":resource_only_lib", ":shared_lib", ":only_main_lib"],
253264)
265+
266+ apple_archive(
267+ name = "ipa_app",
268+ bundle = ":app",
269+ )
254270EOF
255271
256- do_build ios //app:app || fail " Should build"
272+ do_build ios //app:ipa_app || fail " Should build"
257273
258274 # Verify that the resource is in the framework.
259275 assert_zip_contains " test-bin/app/app.ipa" \
0 commit comments