Skip to content

Update iOS SwiftPM docs for ExecuTorch 1.0.0#19565

Merged
GregoryComer merged 3 commits into
pytorch:mainfrom
Vasanthadithya-mundrathi:docs/update-ios-swiftpm-video
May 18, 2026
Merged

Update iOS SwiftPM docs for ExecuTorch 1.0.0#19565
GregoryComer merged 3 commits into
pytorch:mainfrom
Vasanthadithya-mundrathi:docs/update-ios-swiftpm-video

Conversation

@Vasanthadithya-mundrathi
Copy link
Copy Markdown
Contributor

@Vasanthadithya-mundrathi Vasanthadithya-mundrathi commented May 13, 2026

Part of #17425.

This refreshes the iOS SwiftPM documentation for the ExecuTorch 1.0.0 package flow.

Changes:

  • Updates the remaining swiftpm-0.6.0 guidance in the getting started page to use swiftpm-1.0.0.
  • Clarifies the Xcode product selection step for the simple XNNPACK app path.
  • Refreshes the Xcode package-product screenshot and demo video assets for the swiftpm-1.0.0 flow.

Validation:

  • git diff --check
  • Verified docs/source/_static/img/swiftpm_xcode.mp4 duration is 94.37s at 1280x836 and sampled frames through package selection.

cc @mergennachin @AlannaBurke @shoumikhin @cbilgin

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 13, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19565

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 1 New Failure, 71 Pending

As of commit ccaf274 with merge base 65c7ee2 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 13, 2026
@github-actions github-actions Bot added advanced Advanced Difficulty for issues as part of PyTorch Docathon H1 2026 docathon-2026 module: doc Issues related to documentation, both in docs/ and inlined in code module: ios Issues related to iOS code, build, and execution labels May 13, 2026
Copy link
Copy Markdown
Contributor Author

@pytorchbot label "release notes: none"

@pytorch-bot pytorch-bot Bot added the release notes: none Do not include this in the release notes label May 13, 2026
@Vasanthadithya-mundrathi Vasanthadithya-mundrathi marked this pull request as ready for review May 13, 2026 20:55
Copilot AI review requested due to automatic review settings May 13, 2026 20:55
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Refreshes iOS SwiftPM documentation to reflect the ExecuTorch 1.0.0 package flow, replacing older swiftpm-0.6.0 guidance and clarifying which products to link.

Changes:

  • Updates getting-started docs to reference swiftpm-1.0.0 instead of swiftpm-0.6.0.
  • Clarifies Xcode product selection for the XNNPACK backend path.
  • (Asset updates for screenshot/video referenced in PR description but not in diff.)

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
docs/source/using-executorch-ios.md Refines branch selection wording and lists specific products to link for an XNNPACK app.
docs/source/getting-started.md Replaces outdated swiftpm-0.6.0 example with swiftpm-1.0.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor Author

Hi @mergennachin, this is ready for review when you have a chance. The linked Docathon issue #17425 is assigned to me now, and the PR has the CLA/docathon/advanced labels. Please let me know if you'd like any changes to the docs text or media assets.

Copy link
Copy Markdown
Contributor

@shoumikhin shoumikhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving — docs-only change, looks good. A few small follow-up suggestions inline (non-blocking). Also flagging that the refreshed .mp4 / .png assets couldn't be verified programmatically — worth one human eyeball on the video before merge.

Additional asset nit (can't attach inline to binaries): swiftpm_xcode2.png was refreshed but the sibling swiftpm_xcode1.png (search-bar step in the same flow) wasn't. If the Xcode UI changed between 0.6.0 and 1.0.0 for that step too, the two screenshots will show different Xcode chrome side-by-side. Worth a quick visual check.

Comment thread docs/source/using-executorch-ios.md Outdated
#### Xcode

In Xcode, go to `File > Add Package Dependencies`. Paste the URL of the [ExecuTorch repo](https://github.com/pytorch/executorch) into the search bar and select it. Make sure to change the branch name to the desired ExecuTorch version in format "swiftpm-<version>", (e.g. "swiftpm-1.0.0"), or a branch name in format "swiftpm-<version>.<year_month_date>" (e.g. "swiftpm-1.1.0-20251101") for a [nightly build](https://ossci-ios.s3.amazonaws.com/list.html) on a specific date.
In Xcode, go to `File > Add Package Dependencies`. Paste the URL of the [ExecuTorch repo](https://github.com/pytorch/executorch) into the search bar and select it. Change the dependency rule to a branch named for the desired ExecuTorch version, such as `swiftpm-1.0.0`, or use a branch name in the format `swiftpm-<version>.<year_month_date>` for a [nightly build](https://ossci-ios.s3.amazonaws.com/list.html) on a specific date.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: the previous text gave a concrete nightly example (e.g. swiftpm-1.1.0-20251101). Consider keeping one real example alongside the pattern — it's a useful copy-pasteable for first-time users.

Comment thread docs/source/using-executorch-ios.md Outdated
#### Xcode

In Xcode, go to `File > Add Package Dependencies`. Paste the URL of the [ExecuTorch repo](https://github.com/pytorch/executorch) into the search bar and select it. Make sure to change the branch name to the desired ExecuTorch version in format "swiftpm-<version>", (e.g. "swiftpm-1.0.0"), or a branch name in format "swiftpm-<version>.<year_month_date>" (e.g. "swiftpm-1.1.0-20251101") for a [nightly build](https://ossci-ios.s3.amazonaws.com/list.html) on a specific date.
In Xcode, go to `File > Add Package Dependencies`. Paste the URL of the [ExecuTorch repo](https://github.com/pytorch/executorch) into the search bar and select it. Change the dependency rule to a branch named for the desired ExecuTorch version, such as `swiftpm-1.0.0`, or use a branch name in the format `swiftpm-<version>.<year_month_date>` for a [nightly build](https://ossci-ios.s3.amazonaws.com/list.html) on a specific date.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this line says year_month_date but the CLI block further down (around L64) says year_month_day. Since you're already touching this line, would you mind unifying both to year_month_day?

Comment thread docs/source/using-executorch-ios.md Outdated
![](_static/img/swiftpm_xcode1.png)

Then select which ExecuTorch framework should link against which target.
Then select the ExecuTorch products that your app needs. For a simple app using the XNNPACK backend, link the app target against `executorch`, `backend_xnnpack`, and `kernels_optimized`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: worth a one-line caveat that executorch is the core runtime, other backends (CoreML, MPS) require different products, and kernels_portable is an alternative to kernels_optimized if binary size matters. A pointer to the full product list further down the page would also help beginners.

Comment thread docs/source/getting-started.md Outdated
ExecuTorch supports both iOS and macOS via C++, as well as hardware backends for CoreML, MPS, and CPU. The iOS runtime library is provided as a collection of .xcframework targets and are made available as a Swift PM package.

To get started with Xcode, go to File > Add Package Dependencies. Paste the URL of the ExecuTorch repo into the search bar and select it. Make sure to change the branch name to the desired ExecuTorch version in format “swiftpm-”, (e.g. “swiftpm-0.6.0”). The ExecuTorch dependency can also be added to the package file manually. See [Using ExecuTorch on iOS](using-executorch-ios.md) for more information.
To get started with Xcode, go to `File > Add Package Dependencies`. Paste the URL of the ExecuTorch repo into the search bar and select it. Make sure to change the dependency rule to a branch named for the desired ExecuTorch version, such as `swiftpm-1.0.0`. The ExecuTorch dependency can also be added to the package file manually. See [Using ExecuTorch on iOS](using-executorch-ios.md) for more information.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: other places in the docs use the (e.g. …) parenthetical pattern. Not a blocker — the new phrasing is cleaner — just flagging the slight style drift.

@GregoryComer GregoryComer merged commit 2a0a2f8 into pytorch:main May 18, 2026
167 of 169 checks passed
metascroy added a commit that referenced this pull request May 18, 2026
Reverts #19565

The mp4 file fails import (D105606113) due to large file size
restrictions:

oldSize: 3635918
newSize: 7982247

cc @mergennachin @AlannaBurke @shoumikhin @cbilgin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

advanced Advanced Difficulty for issues as part of PyTorch Docathon H1 2026 CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. docathon-2026 module: doc Issues related to documentation, both in docs/ and inlined in code module: ios Issues related to iOS code, build, and execution release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants