You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documents/compiling.md
+38-7Lines changed: 38 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,13 +65,44 @@ flutter run
65
65
66
66
For detailed integration instructions, refer to Rinf's [documentation](https://rinf.cunarist.com).
67
67
68
-
## Tips for Compiling on macOS
68
+
## macOS
69
69
70
-
Rune currently does not support macOS, but here are some tips for attempting compilation:
70
+
> This chapter provides instructions for building Rune on macOS for **development**. If you want to fork Rune and build your own version for production, you need to set up your own code signing, provisioning profiles, etc., which is not covered in this chapter.
71
71
72
-
- Ensure you have the Flutter SDK and Rust toolchain installed.
73
-
- For [CocoaPods](https://cocoapods.org/), avoid using the default macOS Ruby version. Use Homebrew instead:
72
+
### Prerequisites
74
73
75
-
```bash
76
-
brew install cocoapods
77
-
```
74
+
- Xcode
75
+
- [Homebrew](https://brew.sh)
76
+
77
+
### Steps
78
+
79
+
1. Clone the repository:
80
+
```bash
81
+
git clone https://github.com/losses/rune.git
82
+
cd rune
83
+
```
84
+
2. Install all development dependencies:
85
+
```sh
86
+
./scripts/macos_1_install.sh
87
+
```
88
+
89
+
> If you're an employee of *Inkwire Tech*, make sure you have an Apple Account in*Inkwire Tech*'s Developer Program logged in on your Xcode, and skip to Step #6. Ask @laosb if you can't make it work.
90
+
91
+
3. Open the project in Xcode:
92
+
```sh
93
+
open ./macos/Runner.xcworkspace
94
+
```
95
+
4. In Xcode, selectthe`Runner` project in the project navigator, thenselectthe`Runner` target.
96
+
5. In the *Signing & Capabilities* tab:
97
+
1. Uncheck *Automatically manage signing*.
98
+
2. Select *None*for*Provisioning Profile*.
99
+
3. Select *None*for*Team*.
100
+
4. Select *Sign to Run Locally*for*Signing Certificate*.
101
+
6. Build / run the project:
102
+
```sh
103
+
./scripts/macos_2_build.sh
104
+
# or
105
+
./scripts/macos_2_run.sh
106
+
```
107
+
108
+
We use the signing configuration in our production GitHub Actions workflow, so please don't commit and push any changes to the signing configuration.
0 commit comments