Skip to content

Commit

Permalink
Update README.md (pytorch#959)
Browse files Browse the repository at this point in the history
* Update README.md

Add more info on how to install Cmake on macOS and how to resolve potential packages issue in Xcode.

* Update README.md
  • Loading branch information
shoumikhin authored Jul 29, 2024
1 parent 8dd61c8 commit a95f24d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ The following assumes you've completed the steps for [Setting up ExecuTorch](#se
#### Requirements
- [Xcode](https://apps.apple.com/us/app/xcode/id497799835?mt=12/) 15.0 or later
- [Cmake](https://cmake.org/download/) 3.19 or later
- Download and open the macOS `.dmg` installer and move the Cmake app to `/Applications` folder.
- Install Cmake command line tools: `sudo /Applications/CMake.app/Contents/bin/cmake-gui --install`
- A development provisioning profile with the [`increased-memory-limit`](https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_kernel_increased-memory-limit) entitlement.


Expand All @@ -376,6 +378,15 @@ The following assumes you've completed the steps for [Setting up ExecuTorch](#se
```bash
open et-build/src/executorch/examples/demo-apps/apple_ios/LLaMA/LLaMA.xcodeproj
```

> Note: If you're running into any issues related to package dependencies, close Xcode, clean some of the caches and/or the build products, and open the Xcode project again:
> ```bash
> rm -rf \
> ~/Library/org.swift.swiftpm \
> ~/Library/Caches/org.swift.swiftpm \
> ~/Library/Caches/com.apple.dt.Xcode \
> ~/Library/Developer/Xcode/DerivedData
> ```
2. Click the Play button to launch the app in the Simulator.
3. To run on a device, ensure you have it set up for development and a provisioning profile with the `increased-memory-limit` entitlement. Update the app's bundle identifier to match your provisioning profile with the required capability.
Expand Down

0 comments on commit a95f24d

Please sign in to comment.