NSObject-Rx icon indicating copy to clipboard operation
NSObject-Rx copied to clipboard

Can't compile with Cocopods and Xcode 12

Open alouanemed opened this issue 4 years ago • 1 comments


> Copying Moya-umbrella.h

[x] /Users/alouanemed/Projects/a-iOS/Pods/_Prebuild/Moya/Sources/RxMoya/MoyaProvider+Rx.swift:2:8: compiling for iOS 10.0, but module 'RxSwift' has a minimum deployment target of iOS 12.0: /Users/alouanemed/Projects/a-iOS/Pods/build/Release-iphoneos/RxSwift/RxSwift.framework/Modules/RxSwift.swiftmodule/arm64-apple-ios.swiftmodule

import RxSwift
       ^


> Linking Alamofire
> Linking Alamofire

alouanemed avatar Sep 19 '20 14:09 alouanemed

Hi there, looks like an issue with your target iOS version:

compiling for iOS 10.0, but module 'RxSwift' has a minimum deployment target of iOS 12.0

This is odd since RxSwift should work as far back as iOS 8:

https://github.com/ReactiveX/RxSwift/blob/92bf03ec1f1bedcd041fa1074896acd621cbca18/RxSwift.podspec#L30

Moya, and its RxSwift subspec, also support iOS 10:

https://github.com/Moya/Moya/blob/218c2f3462ff1e8b85283b94829afd54a9850664/Moya.podspec#L16

I'm a little confused about this error then. Can you share your Podfile?

ashfurrow avatar Sep 19 '20 20:09 ashfurrow

it's time to close it.

ShenYj avatar Aug 29 '23 08:08 ShenYj