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
Gemfilefrom/appstarter-pod-ios/appstarter-pod-ios/Resources/Bundler. This includes thecocopodsandfastlanegems and will allowbundlerbe used. Use the command:cp Pods/appstarter-pod-ios/appstarter-pod-ios/Resources/Bundler/Gemfile Gemfile - Run
bundle installto install dependencies from the gemfile - Set up fastlane
- Copy the
Fastfilefrom/appstarter-pod-ios/appstarter-pod-ios/Resources/Fastlaneto thefastlanedirectory of the project - Run
bundle exec fastlane copyResourcesto 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.ymlto set up for the current project - Edit
SourceryTemplates/Test/LocalImports.stencilto 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
Fastfileto turn off thereadonlyflag in the:certificateslane (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 printVariablesand 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.defaultwill 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.