icerockdev / moko-mvvm

Model-View-ViewModel architecture components for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
997 stars 95 forks source link

Specify versions for subspecs dependencies #74

Closed ATchernov closed 3 years ago

ATchernov commented 3 years ago

There's no version for AlamofireImage and you will receive compilation error if you don't set it in your podfile version what support iOS 9.0

MultiPlatformLibraryMVVM.podspec:

    spec.dependency 'MultiPlatformLibrary'

    spec.ios.deployment_target  = '9.0'
    spec.swift_version = '4.2'

    spec.subspec 'Core' do |sp|
      sp.source_files = "mvvm/src/iosMain/swift/Core/**/*.{h,m,swift}"
    end

    spec.subspec 'AlamofireImage' do |sp|
      sp.source_files = "mvvm/src/iosMain/swift/AlamofireImage/**/*.{h,m,swift}"
      sp.dependency 'AlamofireImage'
    end

Temporary workaround for your project:

  pod 'AlamofireImage', '~> 3.5.2' # 4.0.0 have deployment_target = iOS 10.0