stewartlynch/xcodeprojectrenamer
" target="_blank"><img src="http://img.youtube.com/vi/l8cnIetfafs/0.jpg"
π What Does It Do?
Renaming an Xcode project isn't just renaming a folder β it often involves:
- Renaming the
.xcodeprojfile - Renaming the
.xcworkspacefile (if present) - Renaming scheme names
- Renaming directory names
- Updating internal references to the old name in:
- project.pbxproj - workspace data files - .swift or .plist files (if desired)
xprename automates all of this safely and quickly in a single command.
π¦ Option 1: Installation via Homebrew
You can install the command-line tool using Homebrew:
brew install stewartlynch/tap/xprenameπ Option 2: Manual Build & Install locally via SwiftPM
If you prefer to build it yourself, you can clone the repo and install the tool manually using Swift Package Manager.
Clone the Repository
git clone https://github.com/StewartLynch/XcodeProjectRenamer.git
cd XcodeProjectRenamerBuild with SwiftPM
swift build -c release
sudo cp .build/release/xprename /usr/local/bin/π§ͺ How to use
Once installed:
- Open Terminal
- Change the directory to your project directory
- Issue the following command:
xprename MyOldAppName MyNewAppNameThis will:
- Rename all references of
MyOldAppNametoMyNewAppName - Rename
.xcodeprojand.xcworkspacefiles - Update folder names and scheme names accordingly
Other commands
version
To display the current version
xprename --versionhelp
To show help information
xprename -hLicense
This code is released under the MIT license. See LICENSE for details.
Package Metadata
Repository: stewartlynch/xcodeprojectrenamer
Default branch: main
README: README.md