Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.16 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.16 KB

kmp-example-module

Building iOS framework for testing

  • 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

Building iOS SPM package and publishing

  • 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

Helpful iOS Resources