appstarter-pod-ios
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
appstarter-pod-ios is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'appstarter-pod-ios'
Setting up a new project with appstarter-pod-ios
- Create a new project in Xcode
- Set up cocoapods and install appstarter-pod-ios as described above
- Copy
Gemfile
from/appstarter-pod-ios/appstarter-pod-ios/Resources/Bundler
. This includes thecocopods
andfastlane
gems and will allowbundler
be used. Use the command:cp Pods/appstarter-pod-ios/appstarter-pod-ios/Resources/Bundler/Gemfile Gemfile
- Run
bundle install
to install dependencies from the gemfile - Set up fastlane
- Copy the
Fastfile
from/appstarter-pod-ios/appstarter-pod-ios/Resources/Fastlane
to thefastlane
directory of the project - Run
bundle exec fastlane copyResources
to copy over other required Resources - open
/Fastlane/.env.default
(copied in the above step) and edit variables to apply to this project - Add a SwiftLint build phase to the project
- Sourcery set up
- Edit
.sourcery.yml
to set up for the current project - Edit
SourceryTemplates/Test/LocalImports.stencil
to set up for the current project - Add a Sourcery build phase to the project
- Set up automatic versioning. Follow the steps here: https://developer.apple.com/library/content/qa/qa1827/_index.html
- Set up certificates and provisioning profiles
- Ensure source control is clean
- Edit the
Fastfile
to turn off thereadonly
flag in the:certificates
lane (see the comments in the file to explain which line to comment in) - Run
bundle exec fastlane certificates
- Reset the changes that were made to the fastlane script
- Run
bundle exec fastlane printVariables
and check against the Xcode project that everything is set up correctly
Updating to the latest version of appstarter-pod-ios
- Update the pod:
bundle exec pod update appstarter-pod-ios
- Ensure everything is committed (or staged) in source control
- Update to the latest versions of scripts by running
bundle exec fastlane copyResources
- Check the changes in source control. Some files, such as
.env.default
will overwrite the local versions, so you'll need to reset any files (or individual lines) that you don't want.
Author
gllittler, [email protected]
License
appstarter-pod-ios is available under the MIT license. See the LICENSE file for more info.