Moya: pod install Error

Created on 19 Nov 2018  路  18Comments  路  Source: Moya/Moya

[!] The platform of the target Mine (iOS 10.1) is not compatible with Moya/RxSwift (12.0.0), which does not support ios.

cocoapods confirmed bug reactivemoya rxmoya

Most helpful comment

@andre991 Hey there,

  1. Make sure you are using Moya version 12.0.1
  2. Try deleting your derived data folder and rebuild
  3. Make sure your deployment target is set to 3.0 in your project

Hi @SD10, me and @LucianoPAlmeida managed to identify the error, it is in the dependencies in the podspec of MoyaObjectMapper. I'll create a PR there in their github to fix this problem. Thank you.

All 18 comments

Can you share your podfile @UNIQUEXJ? I'll try some example projects with Moya now 馃槙

platform :ios, '10.0'

target '' do
use_frameworks!

pod 'Moya/ReactiveSwift'

I also encountered this problem.

Thanks @zgjff I can reproduce so I'm looking into it

The platform of the target Example (iOS 10.0) is not compatible with Moya/RxSwift (12.0.0), which does not support ios.

Could be related to #1758 and #1766 but I'm still unsure. The deployment targets are set for the RxSwift and ReactiveSwift targets in the xcodeproj. All platforms are supported for the targets in build settings as well

@Moya/core-team Anyone has any ideas as to what's wrong here?

Yeah, so it looks like definingwatchos.deployment_target inside of the subspecs is the culprit. I don't know if we can have different deployment target for different subspecs.

The previous minimum deployment target is 2.0 and RxMoya now requires 3.0. The best solution might be to just make the minimum deployment target 3.0 overall

[!] The platform of the target Mine (iOS 10.1) is not compatible with Moya/RxSwift (12.0.0), which does not support ios.

platform :ios, '10.1'
use_frameworks!
target 'SwiftProject' do
pod 'Moya/RxSwift'
end

Reopening because this is still broken when downloading from CocoaPods. Installing locally works for me now. Don't think I can fix this tonight

Reopening because this is still broken when downloading from CocoaPods. Installing locally works for me now. Don't think I can fix this tonight

thanks

I'll likely have to ship a 12.0.1 to update the podspec stored at CocoaPods/Specs. I think that's the remaining issue. Very tired of this rabbit hole though 馃槄

Use this method before fix.
pod 'Moya/ReactiveSwift', '~> 11.0.2'
pod 'ReactiveCocoa', '~> 7.0.1'

@UNIQUEXJ @zgjff @Limon-O-O This should be fixed by Moya version 12.0.1. Can you please let me know if that works for you? Really sorry about this 馃槗

I'm going to leave this open for visibility

@SD10 it solved, thanks

Moya 12 is Not working with watchos 4.3 for me. Any solutions??
screen shot 2018-11-23 at 09 45 59

@andre991 Hey there,

  1. Make sure you are using Moya version 12.0.1
  2. Try deleting your derived data folder and rebuild
  3. Make sure your deployment target is set to 3.0 in your project

@andre991 Hey there,

  1. Make sure you are using Moya version 12.0.1
  2. Try deleting your derived data folder and rebuild
  3. Make sure your deployment target is set to 3.0 in your project

Hi @SD10, me and @LucianoPAlmeida managed to identify the error, it is in the dependencies in the podspec of MoyaObjectMapper. I'll create a PR there in their github to fix this problem. Thank you.

I think this one is fixed so I'm closing it. Thanks everyone for participation!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jdisho picture jdisho  路  26Comments

BasThomas picture BasThomas  路  31Comments

raphaelcruzeiro picture raphaelcruzeiro  路  27Comments

Matthijn picture Matthijn  路  27Comments

gperdomor picture gperdomor  路  23Comments