Skip to content

Commit

Permalink
docs: updated documentation to be compatible with old macOS versions
Browse files Browse the repository at this point in the history
Resolves #254
  • Loading branch information
wojciech-kulik committed Nov 25, 2024
1 parent af9189a commit 9925c29
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 deletions doc/xcodebuild.txt
Original file line number Diff line number Diff line change
Expand Up @@ -605,11 +605,12 @@ Update your config with:
👉 Run the following command to install & protect the script

>bash
DEST="$HOME/Library/xcodebuild.nvim/remote_debugger" && \
DEST="$HOME/Library/xcodebuild.nvim" && \
SOURCE="$HOME/.local/share/nvim/lazy/xcodebuild.nvim/tools/remote_debugger" && \
ME="$(whoami)" && \
sudo install -m 755 -o root -D "$SOURCE" "$DEST" && \
sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST\" >> /etc/sudoers"
sudo install -d -m 755 -o root "$DEST" && \
sudo install -m 755 -o root "$SOURCE" "$DEST" && \
sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST/remote_debugger\" >> /etc/sudoers"
<

See also: https://github.com/doronz88/pymobiledevice3/blob/master/misc/RemoteXPC.md#trusted-tunnel
Expand Down Expand Up @@ -4002,11 +4003,12 @@ Update your config with:
👉 Run the following command to install & protect the script

>bash
DEST="$HOME/Library/xcodebuild.nvim/xcodebuild_offline" && \
DEST="$HOME/Library/xcodebuild.nvim" && \
SOURCE="$HOME/.local/share/nvim/lazy/xcodebuild.nvim/tools/xcodebuild_offline" && \
ME="$(whoami)" && \
sudo install -m 755 -o root -D "$SOURCE" "$DEST" && \
sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST\" >> /etc/sudoers"
sudo install -d -m 755 -o root "$DEST" && \
sudo install -m 755 -o root "$SOURCE" "$DEST" && \
sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST/xcodebuild_offline\" >> /etc/sudoers"
<


Expand Down
7 changes: 4 additions & 3 deletions lua/xcodebuild/docs/ios17.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
---👉 Run the following command to install & protect the script
---
--->bash
--- DEST="$HOME/Library/xcodebuild.nvim/remote_debugger" && \
--- DEST="$HOME/Library/xcodebuild.nvim" && \
--- SOURCE="$HOME/.local/share/nvim/lazy/xcodebuild.nvim/tools/remote_debugger" && \
--- ME="$(whoami)" && \
--- sudo install -m 755 -o root -D "$SOURCE" "$DEST" && \
--- sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST\" >> /etc/sudoers"
--- sudo install -d -m 755 -o root "$DEST" && \
--- sudo install -m 755 -o root "$SOURCE" "$DEST" && \
--- sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST/remote_debugger\" >> /etc/sudoers"
---<
---
---See also: https://github.com/doronz88/pymobiledevice3/blob/master/misc/RemoteXPC.md#trusted-tunnel
Expand Down
7 changes: 4 additions & 3 deletions lua/xcodebuild/integrations/xcodebuild-offline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@
---👉 Run the following command to install & protect the script
---
--->bash
--- DEST="$HOME/Library/xcodebuild.nvim/xcodebuild_offline" && \
--- DEST="$HOME/Library/xcodebuild.nvim" && \
--- SOURCE="$HOME/.local/share/nvim/lazy/xcodebuild.nvim/tools/xcodebuild_offline" && \
--- ME="$(whoami)" && \
--- sudo install -m 755 -o root -D "$SOURCE" "$DEST" && \
--- sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST\" >> /etc/sudoers"
--- sudo install -d -m 755 -o root "$DEST" && \
--- sudo install -m 755 -o root "$SOURCE" "$DEST" && \
--- sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST/xcodebuild_offline\" >> /etc/sudoers"
---<
---
---
Expand Down

0 comments on commit 9925c29

Please sign in to comment.