Skip to content

elliottwilliams/XcodeMove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XcodeMove

xcmv on RubyGems xcmv on Travis CI

xcmv is a command that works like mv, but moves files between Xcode projects as well as the filesystem. This makes it easy to bulk-move files between projects.

xcmv supports updating pbxproj file references, automatically adding Swift and Objective-C source files to new build targets, and changing the visibility of header files.

Installation

$ gem install xcmv

Usage

Use xcmv like mv. However, some optional arguments allow for customization of the file's reference in the destination project.

$ xcmv -h
Usage: xcmv src_file [...] dst_file
        --git=[true|false]           Use `git mv` (default: true if in a git repo)
    -t, --targets=[TARGETS]          Comma-separated list of targets to add moved files to (default: guess)
    -h, --headers=[HEADERS]          Visibility level of moved header files (default: `public` for frameworks, `project` otherwise)
        --help                       This help message
    -v, --version

Assumptions

  • A source file is already in an xcode project
  • The .xcodeproj file for a source file can be found by traversing up through the filesystem