Hello, I’m trying to introduce a multiplatform mod...
# apollo-kotlin
e
Hello, I’m trying to introduce a multiplatform module into an existing iOS project. My multiplatform module uses apollo-kotlin so I have the Apollo client setup there as well as the queries. I’m using cocoapods to add the module to the iOS project, but I keep getting this error when building:
'getter' attribute on property 'name' does not match the property inherited from 'SharedKotlinEnum'
on
Apollo_apiJsonReaderToken
I’ve tried cleaning up everything possible, related to builds in Xcode, without success. The only multiplatform sample I could find, MortyKMM , uses the Xcode framework method, not cocoapods, so I’m also wondering if this is a know issue when using cocoapods?
b
Hi! There are no Cocoapods specific issues that I'm aware of. Not very familiar with it to be honest, I've been using the Frameworks way as well in the past. Would it be possible for you to try with a Framework just to see if you get the same error?
e
Thank you for the quick response! I actually tried the other way first, converted the sample project to cocoapods; it works, because the target’s
Build Settings > Swift compiler - warnings policies > SWIFT_TREAT_WARNINGS_AS_ERRORS
is set to
NO
, and in my project, it was set to
YES
. So that wasn’t actually an error, but a warning. I think I can live with that 😄 However, I’ll also test my project with the framework method and see what happens
b
oh interesting! I'd be curious to understand what this warning is about and if we can do anything about it 😅
e
It’s weird because the header file looks the same in either case, don’t understand why Xcode shows the warning only in the cocoapods case