You'll need an Xcode project with CocoaPods set up. That means you'll have a
Podfile that you can edit with the necessary code to integrate your Kotlin module.
For artifacts that are kept in private storage, you may need to add authentication information so your
~/.netrc file or your Mac's Keychain Access. See GITHUB_RELEASE_ARTIFACTS#private-repos for a description of how to set up private file access.
Add Podspec Repo
Podfile, add the module and the source. An example
Podfile might look like this:
platform :ios, '13'
target 'KMMBridgeSampleCocoaPods' do
pod 'shared', '0.2.1'
Then, to initialize CocoaPods, run:
As you publish new versions of the library, you will need to update the local podspec repo copy. Either run:
pod repo update
Or update the podspec when you're updating your CocoaPods project:
pod install --repo-update
pod update --repo-update
Assuming that all worked, you should be able to open the project and build it.
If you are using a private podspec repo, your setup should work if you've added the authentication above. If the files can't be synced, make sure to double-check the auth setup.
After you run
pod install, CocoaPods generates an
xcworkspace file. There is usually both an
xcodeproj and an
xcworkspace. Make sure you open the
Local Kotlin Dev
If you are editing Kotlin, you will probably want to test it locally. To do that, see IOS_LOCAL_DEV_COCOAPODS.