This script can be use to add common libraries and tools to an already existing Xcode project. As a safety measure, if a file already exists, like 'Podfile', it will not be override. If the file does not exists, it will be created by the script, using default values.
This script will execute basic setup creating some configuration files, but will not override existing files.
Created files will assure that target names, directory references and so matches the project's files, targets and directory names.
Steps:
- Setup rbenv or RVM. If neither is configured, configures rbenv.
- Installs Bundler
- If Gemfile file does not exist, creates a default Gemfile.
- If Podfile does not exist, executes pod init
- If Rakefile does not exists, creates a default Rakefile.
- Executes rake install
- If .clang-format file does not exist, creates a default .clang-format.
- If .slather.yml file does not exists, creates a default .slather.yml file.
- CD to the directory having the .xcodeproj file.
- Execute
sh <(curl https://raw.githubusercontent.com/inacioferrarini/ios-project-setup/master/bootstrap.sh)