My favorite Xcode project structure, plus SwiftLint and SwiftFormat pre-configured.
-
Install Xcode
- App Store (easiest)
- Developer Portal
- Xcodes (recommended)
-
Verify your Ruby version
ruby --version
Ideally it show you something like this (Required:
>= 2.7.0
):ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [arm64-darwin22]
Check the Troubleshooting Guide to fix your Ruby version.
-
Install bundler
gem install bundler --user-install
-
Clone this repository via SSH
git clone git@github.com:hoppsen/xcode-template.git
Check the Troubleshooting Guide to setup SSH (for GitHub).
-
Navigate to the project's directory.
-
Install all gems via bundle.
bundle install
-
Run our guided setup script.
bundle exec fastlane setup
-
(Optional) Rename the whole project to a name of your choice.
bundle exec fastlane rename new_name:Hoppsen
-
Open
Template.xcodeproj
(or new name if renamed before) -
Start coding 🚀
Project created with template from https://github.com/hoppsen/xcode-template.