mxcl / PromiseKit

Promises for Swift & ObjC.
MIT License
14.23k stars 1.46k forks source link

MapKit Subspec 4.0.0 isn't compatible with iOS? #537

Closed aaronbrethorst closed 8 years ago

aaronbrethorst commented 8 years ago

I'm trying to upgrade my app to Swift 3. I'm running into what seems to be a blocking issue with the PromiseKit MapKit subspec.

Full app source code: https://github.com/aaronbrethorst/onebusaway-iphone/tree/swift3 Podfile: https://github.com/aaronbrethorst/onebusaway-iphone/blob/swift3/Podfile

$ pod install
Analyzing dependencies
Pre-downloading: `SwiftMessages` from `https://github.com/aaronbrethorst/SwiftMessages.git`, branch `xcode8-gm`
[!] The platform of the target `OBAKit` (iOS 9.0) is not compatible with `PromiseKit/MapKit (4.0.0)`, which does not support `ios`.
mxcl commented 8 years ago

K, figured it out, seems to be a bug in CocoaPods where specifying any deployment target in the subspec causes the deployment targets for any other platforms to be erased. Work around is to re-specify.

mxcl commented 8 years ago

I will push 4.0.1 to CocoaPods as soon as I have determined the issue with #538.

mxcl commented 8 years ago

In the meantime you should be able to use what we have with:

pod "PromiseKit", git: "https://github.com/mxcl/PromiseKit", commit: "d8d9d95"
aaronbrethorst commented 8 years ago

Awesome, thanks @mxcl