Does anyone know how to get rid of this error when working with cocoapod?
Copy code
[!] Automatically assigning platform `iOS` with version `13.5` on target `App-iOS` because no platform was specified. Please specify a platform for this target in your Podfile. See `<https://guides.cocoapods.org/syntax/podfile.html#platform>`.
I can’t figure out how to specify the platform in gradle.
r
russhwolf
09/08/2021, 7:50 PM
It's not a gradle thing. It's telling you to add a line to your podfile, which is probably in the same directory as your xcode project
s
spierce7
09/08/2021, 8:24 PM
but the podfile is generated by gradle. Me modifying the podfile directly is pointless, right?
r
russhwolf
09/08/2021, 8:25 PM
gradle generates a podspec for the kotlin framework. The consuming project has a podfile that points to that podspec and has app-level configuration
s
spierce7
09/08/2021, 8:28 PM
I see - this error is happening with the generated podspec for the Kotlin framework.
spierce7
09/08/2021, 8:29 PM
It happens when I sync the project. I guess you are saying that this isn’t relevant for the framework project?
I suppose that makes sense. Cocoapods doesn’t distribute a framework. Everything is built again with the application, right?
r
russhwolf
09/08/2021, 8:31 PM
If it's happening on sync I'd guess it's from the KMM plugin processing the iOS app
russhwolf
09/08/2021, 8:32 PM
in any case, the docs page it points you to is telling you to add something like this to your podfile: