Skip to content

Instantly share code, notes, and snippets.

@juanarzola
Created September 9, 2025 00:31
Show Gist options
  • Save juanarzola/67d1f3787d7cd15040e3e61e47063c54 to your computer and use it in GitHub Desktop.
Save juanarzola/67d1f3787d7cd15040e3e61e47063c54 to your computer and use it in GitHub Desktop.
TARGET="[email protected]"; APP="/path/to/DerivedData/.../MyApp.app"; APP_NAME=$(basename "$APP"); rsync -avE --delete "$APP" "$TARGET:/Applications/" && ssh "$TARGET" "echo Remote host: \$(hostname); codesign --force --deep -s - /Applications/$APP_NAME && open -n /Applications/$APP_NAME"
@juanarzola
Copy link
Author

To run:

  1. set the TARGET to your target machine's username@host. (host found via hostname in terminal) On the target machine, Turn on General -> Sharing -> Remote Login (turn it off after developing for security)
  2. Build and run in your host machine. Find the .app in your products in Xcode, reveal in finder, paste the path.
  3. run the command in the host machine and enter your target machine password twice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment