Anviking / Decodable

[Probably deprecated] Swift 2/3 JSON unmarshalling done (more) right
MIT License
1.04k stars 73 forks source link

Help Xcode 8 understand that the code is Swift 3 [CocoaPods] #125

Closed chrrasmussen closed 7 years ago

chrrasmussen commented 7 years ago

Unfortunately when installing Decodable using CocoaPods, the generated Xcode project is missing the SWIFT_VERSION build setting. This can be fixed by adding s.pod_target_xcconfig = { 'SWIFT_VERSION' => '3.0' } to the Podspec (see commit).

The compile error from Xcode 8: "Use Legacy Swift Language Version" (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

(Note: I have not updated the version in the Podspec.)

Anviking commented 7 years ago

Oh, thanks for reporting! I tried upgrading to cocoapods-1.1.0.rc.2 and now it appears to works for me. Would non-action be an acceptable solution to this?

chrrasmussen commented 7 years ago

Thanks, you are totally right! I didn't try that version of CocoaPods, sorry :-/

Great library btw!