How do you add iOS dependencies (e.g. cocoapods) t...
# ios
b
How do you add iOS dependencies (e.g. cocoapods) to an app built with org.jetbrains.gradle.apple.applePlugin?
k
Hi, you have to add cocoapods plugin to your project. You can just follow these instructions https://kotlinlang.org/docs/native-cocoapods.html#install-the-cocoapods-dependency-manager-and-plugin. And then add project with cocoapods to dependencies like this:
Copy code
apple {
    iosApp {
        dependencies {
           implementation(project(":project_with_cocoapods"))
        }
    }
}
If cocoapods are located in the same project then they are automatically added.
b
So, the only way to add a dependency to the app to create a separate gradle module, and add the dependency there? Seems a little roundabout, but I guess I can make that work.