I notice you don't have the recommended "PackageFo...
# touchlab-tools
m
I notice you don't have the recommended "PackageForXCode" Gradle task and I don't see how the XCode stuff can be generated by what you do have. Is the development pod manually generated? Trying to use KaMPKit as an example my own project has XCode complain that it doesn't know how to build the native target 😞
r
We use the cocoapods plugin rather than configuring the task directly. See https://kotlinlang.org/docs/native-cocoapods.html
Also note that as of 1.5.20, even if you're not using cocoapods, you no longer need to create the gradle taak manually. See https://blog.jetbrains.com/kotlin/2021/07/multiplatform-gradle-plugin-improved-for-connecting-kmm-modules/
m
Thanx @russhwolf, yes I saw that, and looked at that page (but thanks for the reference) and have included that plugin too, but still no dice. I s'pose the bit that I missed from those instructions was "Re-import the project". I'm guessing that means re-import into XCode*? The JB KMM docs seem to be very lax about mentioning which platform which actions are on. I'm sure it's obvious if you know what's what, but then if I knew that I wouldn't be looking at the docs 😞
r
Yeah cocoapods can be confusing when you're not used to it. It can help to read up on it in the non-kotlin context. We like it because we're often working with clients who are using it in their non-kmp code so it's pretty natural to also use it for the kotlin library. But if that doesn't apply to you then you might be happier configuring the gradle task directly.
👍 1
p
That won't really work when you support watchos as you need to generate a fat framework for the watchos variants