Hey all! ```cocoapods { summary = "Some d...
# multiplatform
a
Hey all!
Copy code
cocoapods {
        summary = "Some description for the Shared Module"
        homepage = "Link to the Shared Module homepage"
        version = "1.0"
        ios.deploymentTarget = "13.0"
        podfile = project.file("../iosApp/Podfile")
I was exploring cocoapods integration. Is there any specific reason that
podfile = project.file("../iosApp/Podfile")
is required?
p
I'm going to check with the team, but it might be that the shared code's CocoaPods is being added to the project podfile. The Podfile is a specification that describes the dependencies of the targets of one or more Xcode projects.
At least I'm pretty sure, but I'll check with them none the less
v
@Pamela Hill hey. Did you check? 🙂
p
Hi - this was in January - so...
v
It is not mentioned in the docs: https://kotlinlang.org/docs/native-cocoapods.html#configure-existing-project And is added in some examples and is not added to others, which is confusing. Also added by default via kmp AS plugin for a new kmp app project.
p
Ah ok, I see. I'm currently on vacation, as is most of the team. But I'll make a note to get back to this conversation in January, and I'll let the tech writers know about the inconsistencies. Thanks!
From the team:
> Is it required?
No
> What does it default to?
The default is
null
it's optional
> What is the meaning of podfile attribute?
The user can point to existing projects Podfile (like
podfile = project.file("../iosApp/Podfile")
)
AFAIK it was used for KMP android studio plugin integration, so that
podinstall
could be invoked from gradle task
🤔 1
Hope this helps!