russhwolf / multiplatform-settings

A Kotlin Multiplatform library for saving simple key-value data
Apache License 2.0
1.7k stars 67 forks source link

iOS build getting failed after adding dependency #145

Closed manishktx closed 1 year ago

manishktx commented 1 year ago

After adding dependency "com.russhwolf:multiplatform-settings-no-arg:1.0.0" android build runs fine but iOS build is getting failed due to "shared" module's classes are not found in iOS-app codebase. If I remove the dependency everything runs fine.

Using kotlin version: 1.7.21 POD file target 'iosApp' do use_frameworks! platform :ios, '14.1' pod 'shared', :path => '../shared' pod 'GoogleMaps', '7.2.0' end

russhwolf commented 1 year ago

Version 1.0.0 of the library was built with Kotlin 1.8, so it might not work from Kotlin 1.7.20. Try upgrading your Kotlin version, or if you can't, you might be able to use 1.0.0-RC instead.

manishktx commented 1 year ago

Thanks @russhwolf it is solved now.