I have a Kotlin app with some cocoapods dependenci...
# kotlin-native
r
I have a Kotlin app with some cocoapods dependencies, I have a
cocoapods
block in my gradle build file. It generates a podspec file. I then reference this podspec file from the Podfile of an XCode project. Now, in a Swift file in the XCode project, I seem to be able to import the dependencies of my app defined in my
cocoapods
block, but not my own Kotlin code. Anyone knows how this is supposed to work?
1
I do see a framework with my project name in build/cocoapods/framework, with a decent size binary and 15k lines header suggesting my whole app is there. But I don’t seem to be able to find all of that from XCode
Well I don’t know. It wouldn’t work so I added the framework manually to the embed frameworks build phase, then I could import it correctly. But I wanted to do it correctly and I supposedly already import it in the embed pods frameworks build phase, so I reverted it. But now it continues to work? I don’t get it. I hate XCode.
d
When using Cocoapods, be sure you're opening the
.workspace
file, not the
.project
file.