Do you have any suggestion how to create and publi...
# multiplatform
l
Do you have any suggestion how to create and publish private cocoapod after podspec file has been generated by cocoapods gradle plugin. Our ios team would just like to call pod install and use this shared framework. Not sure how to pass some params to podpsec gradle task or using some script to modify generated .podspec file. Any idea how to automate publishing?
👍 1
s
For now, I manually copied the podspec and binaries into a new git, then pointed to the new git in the podfile. I then point to the local podspec when developing in kotlin Hoping someone has a nice gradle plugin with some git push + versioning?
l
When you say binaries, you mean build/cocoapods/framework folder?
So in theory i need to create CI step that would call ./gradlew podspec and then push the generated podspec and /framework files to some git repo? Anything else missing?
k
you don't need to generate the podspec each time. only once. then you can modify it yourself.
s
yeah, i manually edit the Podspec file to point to the frameworks folder
spec.vendored_frameworks
and removed the
spec.script_phases
part
seems to be working but a pretty creaky system, it's enough for the initial prototyping
l
Thanks you guys.
@Kris Wong i think gradle podspec task was also recreating framework files, not just podspec file?
k
No, it only creates the podspec