Project

xcmv

0.01
No commit activity in last 3 years
No release in over 3 years
mv-like command that moves files between xcode projects
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.6
 Project Readme

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