Does anyone know how to get rid of this error when...
# multiplatform
s
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
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
but the podfile is generated by gradle. Me modifying the podfile directly is pointless, right?
r
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
I see - this error is happening with the generated podspec for the Kotlin framework.
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
If it's happening on sync I'd guess it's from the KMM plugin processing the iOS app
in any case, the docs page it points you to is telling you to add something like this to your podfile:
platform :ios, '13.5'