I notice when using the cocoapod plugin, I need to...
# multiplatform
k
I notice when using the cocoapod plugin, I need to delete the build directory in my mpp project any time I switch ABIs (device/sim). is that expected?
p
Are you using the podspec wrapper?
k
i am using the podspec that was generated
p
In order to avoid compatibility issues during an Xcode build, the plugin requires using a Gradle wrapper. To generate the wrapper automatically during execution of the podspec task, run it with the parameter -Pkotlin.native.cocoapods.generate.wrapper=true.
k
i have the gradle wrapper committed to my source repo, like an android project
it's the same wrapper?
p
Nope
k
interesting
i wonder why the plugin doesn't include that if it's necessary
k
sure seems like the same gradle wrapper
p
Hmm maybe I misinterpreted that section.
i
it's the same wrapper?
Yes, it's the same wrapper generated by Gradle.
I notice when using the cocoapod plugin, I need to delete the build directory in my mpp project any time I switch ABIs (device/sim). is that expected?
No, it isn't expected. What happens if you don't delete the build directory?
k
then the .klib won't be regenerated for the new ABI
and it gets skipped during linking
i
I cannot reproduce this behaviour. Could you share a link to your project?
k
unfortunately this is proprietary code
i can try to get some logs for you if there's a certain command I can run
i
i can try to get some logs for you if there's a certain command I can run
You can add the
--debug
flag to the Gradle command in the generated podspec. It enables verbose logging for the Gradle build started from Xcode.