mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
Update develop-logseq-on-mobile.md
This commit is contained in:
@@ -6,7 +6,8 @@
|
|||||||
```shell
|
```shell
|
||||||
sudo gem install cocoapods
|
sudo gem install cocoapods
|
||||||
```
|
```
|
||||||
Note: use the following commands from *ios/App* directory to fix **ffi_c.bundle** related issue for M1 MacBook [^1].
|
Note: use the following commands from *ios/App* directory to fix **ffi_c.bundle** related issue for M1 MacBook [^1].
|
||||||
|
(Working directory: `ios/App`)
|
||||||
```shell
|
```shell
|
||||||
sudo arch -x86_64 gem install ffi
|
sudo arch -x86_64 gem install ffi
|
||||||
arch -x86_64 pod install
|
arch -x86_64 pod install
|
||||||
@@ -21,6 +22,7 @@
|
|||||||
cleartext: true
|
cleartext: true
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
- Working directory: Logseq root directory
|
||||||
- Run `yarn && yarn app-watch` from the logseq project root directory in terminal.
|
- Run `yarn && yarn app-watch` from the logseq project root directory in terminal.
|
||||||
- Run `npx cap sync ios` in another termimal to copy web assets from public to *ios/App/App/public*, and create *capacitor.config.json* in *ios/App/App*, and update iOS plugins.
|
- Run `npx cap sync ios` in another termimal to copy web assets from public to *ios/App/App/public*, and create *capacitor.config.json* in *ios/App/App*, and update iOS plugins.
|
||||||
- Connect your iOS device to MacBook.
|
- Connect your iOS device to MacBook.
|
||||||
@@ -28,6 +30,8 @@
|
|||||||
|
|
||||||
or, you can run `bb dev:ios-app` to do those steps with one command if you are on MacOS. To download bb, see https://github.com/babashka/babashka#installation. Also, in order to use mobile bb tasks on macOS, `gsed` needs to be installed in your system (run `brew install gnu-sed` to install).
|
or, you can run `bb dev:ios-app` to do those steps with one command if you are on MacOS. To download bb, see https://github.com/babashka/babashka#installation. Also, in order to use mobile bb tasks on macOS, `gsed` needs to be installed in your system (run `brew install gnu-sed` to install).
|
||||||
|
|
||||||
|
Note: if the dev build isn't reflecting the change of code, restart `yarn app-watch` and run `npx cap sync ios` again.
|
||||||
|
|
||||||
### Build the release app
|
### Build the release app
|
||||||
- Comment out `server` section above in **capacitor.config.ts**.
|
- Comment out `server` section above in **capacitor.config.ts**.
|
||||||
- Connect your iOS device to MacBook.
|
- Connect your iOS device to MacBook.
|
||||||
|
|||||||
Reference in New Issue
Block a user