aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/docs/tutorial
diff options
context:
space:
mode:
authorGravatar Sergio Campama <sergiocampama@gmail.com>2018-03-01 09:07:52 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-01 09:09:48 -0800
commit2705e8c8095ad56c1f600447b0319dea70ff31ca (patch)
tree2115df2590ea4364aab58b844e2b5720d7721488 /site/docs/tutorial
parentf43df1e29765f75e02838e4139417e914b3ee812 (diff)
Update iOS tutorial to reference latest release
Closes #4712. PiperOrigin-RevId: 187486082
Diffstat (limited to 'site/docs/tutorial')
-rw-r--r--site/docs/tutorial/ios-app.md20
1 files changed, 13 insertions, 7 deletions
diff --git a/site/docs/tutorial/ios-app.md b/site/docs/tutorial/ios-app.md
index dba5b55d31..69e758ebb0 100644
--- a/site/docs/tutorial/ios-app.md
+++ b/site/docs/tutorial/ios-app.md
@@ -113,22 +113,28 @@ This creates and opens the empty `WORKSPACE` file.
To build applications for Apple devices, Bazel needs to pull the latest
[Apple build rules](https://github.com/bazelbuild/rules_apple) from its GitHub
-repository. To enable this, add the following [`http_archive`](../be/workspace.html#http_archive)
-rule to your `WORKSPACE` file:
+repository. To enable this, add the following [`git_repository`](../be/workspace.html#git_repository)
+rules to your `WORKSPACE` file:
```
-http_archive(
+git_repository(
name = "build_bazel_rules_apple",
- strip_prefix = "rules_apple-0.1.0",
- urls = ["https://github.com/bazelbuild/rules_apple/archive/0.1.0.tar.gz"],
+ remote = "https://github.com/bazelbuild/rules_apple.git",
+ tag = "0.3.0",
+)
+git_repository(
+ name = "bazel_skylib",
+ remote = "https://github.com/bazelbuild/bazel-skylib.git",
+ tag = "0.2.0",
)
```
**NOTE:** "Always use the [latest version of the build_apple rules](https://github.com/bazelbuild/rules_apple/releases)
-in the `urls` and `strip_prefix` attributes."
+in the `tag` attribute. Make sure to check the latest dependencies required in
+`rules_apple`'s [project](https://github.com/bazelbuild/rules_apple)."
**NOTE:** You **must** set the value of the `name` attribute in the
-`http_archive` rule to `build_bazel_rules_apple` or the build will fail.
+`git_repository` rule to `build_bazel_rules_apple` or the build will fail.
## Review the source files