Skip to content

Commit b386322

Browse files
authored
Update Xcode projects to use nightly builds. (#6873)
Update Xcode projects to use nightly builds. (#6873) Summary: Pinning to binaries build daily. Differential Revision: D65974580
1 parent b0f6048 commit b386322

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

docs/source/apple-runtime.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The prebuilt ExecuTorch runtime, backend, and kernels are available as a [Swift
3838

3939
#### Xcode
4040

41-
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, e.g., "0.4.0", or just use the "latest" branch name for the latest stable build.
41+
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-0.4.0"), or a branch name in format "swiftpm-<version>.<year_month_date>" (e.g. "swiftpm-0.4.0-20241114") for a nightly build on a specific date.
4242

4343
![](_static/img/swiftpm_xcode1.png)
4444

@@ -66,7 +66,7 @@ let package = Package(
6666
.library(name: "YourPackageName", targets: ["YourTargetName"]),
6767
],
6868
dependencies: [
69-
// Use "latest" branch name for the latest stable build.
69+
// Use "swiftpm-0.4.0.<year_month_day>" branch name for a nightly build.
7070
.package(url: "https://github.com/pytorch/executorch.git", .branch("0.4.0"))
7171
],
7272
targets: [

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,8 @@
806806
isa = XCRemoteSwiftPackageReference;
807807
repositoryURL = "https://github.com/pytorch/executorch";
808808
requirement = {
809-
kind = revision;
810-
revision = bcc378c89f47d356f7c8db42730673e019dd0855;
809+
kind = branch;
810+
branch = "swiftpm-0.4.0.2024114";
811811
};
812812
};
813813
/* End XCRemoteSwiftPackageReference section */

examples/demo-apps/apple_ios/LLaMA/LLaMA.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,8 +896,8 @@
896896
isa = XCRemoteSwiftPackageReference;
897897
repositoryURL = "https://github.com/pytorch/executorch";
898898
requirement = {
899-
kind = revision;
900-
revision = bcc378c89f47d356f7c8db42730673e019dd0855;
899+
kind = branch;
900+
branch = "swiftpm-0.4.0.2024114";
901901
};
902902
};
903903
/* End XCRemoteSwiftPackageReference section */

examples/demo-apps/apple_ios/LLaMA/docs/delegates/xnnpack_README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,9 @@ While we recommended using the latest prebuilt package pre-configured with the X
127127

128128
Go to Project Navigator, click on LLaMA. `Project --> LLaMA --> Package Dependencies`, and update the package dependencies to any of the available options below:
129129

130-
- Branch --> latest
130+
- Branch --> swiftpm-0.4.0.20241114 (amend to match the latest nightly build)
131131
- Branch --> 0.4.0
132132
- Branch --> 0.3.0
133-
- Commit --> (Specify the commit hash, for example: `bcc378c89f47d356f7c8db42730673e019dd0855`. Full list [here](https://github.com/pytorch/executorch/commits/latest/))
134-
135133

136134
### 2.2 Manually build the package locally and link them
137135

0 commit comments

Comments
 (0)