sean7512 / RestEssentials

Lightweight REST and JSON library for Swift.
MIT License
37 stars 12 forks source link

Pod install errro "SWIFT_VERSION" #25

Closed JuanSeBestia closed 4 years ago

JuanSeBestia commented 4 years ago

Hi i'm working with Swift 4, without flag use_frameworks!, and have this error

pod install

Installing RestEssentials (4.0.2)
[!] Unable to determine Swift version for the following pods:

- `RestEssentials` does not specify a Swift version and none of the targets (`SomeProjectTests`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
sean7512 commented 4 years ago

@JuanSeBestia As the error says, your project will need to set the SWIFT_VERSION in your target. That should do that

sean7512 commented 4 years ago

@JuanSeBestia Please use 5.0.1 which should address this issue and use Swift Package Manager or Cocoapods.