docs: fix ios-app tutorial
The patch allows `bazel build //ios-app:ios-app` work well following "Create a BUILD file" instructions in [Introduction to Bazel: Building an iOS App](https://docs.bazel.build/versions/master/tutorial/ios-app.html).
Closes #10271.
PiperOrigin-RevId: 284079718
diff --git a/site/docs/tutorial/ios-app.md b/site/docs/tutorial/ios-app.md
index 71b6503..35263d4 100644
--- a/site/docs/tutorial/ios-app.md
+++ b/site/docs/tutorial/ios-app.md
@@ -104,12 +104,24 @@
git_repository(
name = "build_bazel_rules_apple",
remote = "https://github.com/bazelbuild/rules_apple.git",
- tag = "0.4.0",
+ tag = "0.19.0",
)
git_repository(
+ name = "build_bazel_rules_swift",
+ remote = "https://github.com/bazelbuild/rules_swift.git",
+ tag = "0.13.0",
+)
+
+git_repository(
+ name = "build_bazel_apple_support",
+ remote = "https://github.com/bazelbuild/apple_support.git",
+ tag = "0.7.2",
+)
+
+git_repository(
name = "bazel_skylib",
remote = "https://github.com/bazelbuild/bazel-skylib.git",
- tag = "0.3.1",
+ tag = "0.9.0",
)
```
@@ -174,7 +186,7 @@
"UrlGet/main.m",
],
hdrs = glob(["UrlGet/*.h"]),
- xibs = ["UrlGet/UrlGetViewController.xib"],
+ data = ["UrlGet/UrlGetViewController.xib"],
)
```