- Run
./gradlew createXCFramework
in the root of the project to build the framework in./KMPExampleModule/swiftpackage
- Or run
./gradlew packForXcode
in the root of the project to build the framework in./KMPExampleModule/build/xcode-frameworks
- Ensure the
version
is correct in./gradle.properties
- Run
./gradlew createSwiftPackage
in the root of the project to build the framework and the package config - This will build all the required package files in
./KMPExampleModule/swiftpackage
- Navigate into the
swiftpackage
folder - this is a git repo (https://github.com/jacao/KMPExampleModulePackage) - Commit, tag and push any changes e.g:
git commit -m "Version 1.0.1"
git tag 1.0.1
git push origin master --tags
- This can now imported into a project using Swift Package Manager