Is there a way to specify a pod dependency fo a sp...
# multiplatform
j
Is there a way to specify a pod dependency fo a specific target? I have this now
Copy code
cocoapods {
    ...
    // only for ios target
    pod("Mixpanel")

    // only for tvos
    pod("Mixpanel/tvOS")
}
I saw it’s possible to add a cocoapods in each target block, but that means a lot of redundant code
y
Hi @jean! Unfortunately there isn't. If this feature might be useful, create feature request on https://kotl.in/issue and it will appear in future releases.
j
I’m running in this error when building
Copy code
The platform of the target `App-iOS` (iOS 8.0) is not compatible with `Mixpanel/tvOS (3.1.1)`, which does not support `iOS`.
Is there a way to fix it?
even though I added the cocoapod block in each target with the correct pod command
it seems like it’s possible to define several target in a podfile https://stackoverflow.com/questions/14906534/how-do-i-specify-multiple-targets-in-my-podfile-for-my-xcode-project so I guess the cocoapod api should be able to do that
for what it’s worth, I created it here https://youtrack.jetbrains.com/issue/KT-43904
y
Thanks! I'll tell you about progress there
j
I see I can access
podfile
inside
cocoapod
block, I tried to pass my own file but I get an error saying I need to specify the path to a ios project. Is there a way around that?