Custom Xcode behaviors and shell scripts for iOS/macOS development productivity.
- Clone this repository
- Make scripts executable:
chmod +x *.sh - In Xcode: Settings... → Behaviors → +
- Configure behavior with script path and keyboard shortcut
Script: behaviors/open-derived-data.sh
Opens the folder containing build products, indexes, and simulator data.
External Repository: cursor-behavior-for-xcode
Opens the currently active file from Xcode in Cursor at the exact caret position (line and column). This functionality has been moved to its own dedicated repository for better maintenance and distribution.
- Script not running: Check execute permissions (
chmod +x script.sh) - Path issues: Use absolute paths in Xcode Behaviors
- Shortcut conflicts: Use
Cmd + Shift + [Letter]combinations
- Cursor behavior: For issues with the Cursor integration, see the cursor-behavior-for-xcode repository
If behaviors work in Terminal but not from Xcode:
- Verify script path: Ensure you're using the absolute path in Xcode Behaviors
- Check execute permissions: Run
chmod +x script.shto make scripts executable - AppleScript permissions: Grant Terminal/Xcode permission to control other applications in System Settings → Privacy & Security → Automation
- Test manually: Run scripts from Terminal first to verify they work
