Once we have a build on master we want to publish:
-
Bump the
CardScan.podspec
with the new version of our library -
Run CardScan systems iOS test. Make sure to watch the videos to double check that everything looks good.
-
If a new file is added in
CardScan/
, runpod install
and commit the newly createdPod/
directory -
Verify Carthage build is working in the same directory as
.xcodeproj
carthage build --no-skip-current
- If you get the error:
no shared framework schemes
, reclickshared
on the project schemes in xcode. - Make sure to commit files that are modified after reclicking
shared
- If you get the error:
-
Run the Cocoapods linter to make sure that everything is going to pass
pod lib lint
-
Tag release
git tag <version> git push --tags
-
Update the changelog automatically
# checkout https://github.com/github-changelog-generator/github-changelog-generator for installation instructions # put your github token in a file called github_token in the base directory # run: github_changelog_generator -u getbouncer -p cardscan-ios -t `cat github_token`
-
Check the updated Changelog manually and update any entries that need updating.
-
Publish to CocoaPods
pod trunk push
-
Put the new model in the OriginalModels directory
-
Remove the old compiled version from the resources directory
rm -rf CardScan/Assets/FindFour.mlmodelc
-
Compile the new model
xcrun coremlc compile OriginalModels/FindFour.mlmodel CardScan/Assets