swiftcsv / SwiftCSV

CSV parser for Swift
MIT License
962 stars 193 forks source link

updated podspec #22

Closed dautermann closed 9 years ago

dautermann commented 9 years ago

The Swift2 migrations haven't appeared in CocoaPods yet, and if one does a pod spec lint on what's currently checked into http://github.com/natotySwiftCSV/SwiftCSV.podspec, you'll see these errors:

 -> SwiftCSV (0.1.2)
    - ERROR | Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - ERROR |  SwiftCSV/SwiftCSV/CSV.swift:19:12: error: initializer for conditional binding must have Optional type, not 'String'
    - ERROR |  SwiftCSV/SwiftCSV/CSV.swift:49:35: error: 'enumerate' is unavailable: call the 'enumerate()' method on the sequence
    - NOTE  |  Swift.enumerate:1:90: note: 'enumerate' has been explicitly marked unavailable here
    - ERROR |  SwiftCSV/SwiftCSV/CSV.swift:56:36: error: 'enumerate' is unavailable: call the 'enumerate()' method on the sequence

This pull request should fix the problem and get CocoaPods updated properly.

dautermann commented 9 years ago

hello @naoty !

I did almost all the work. You still need to do pod trunk push SwiftCSV.podspec to get things updated on CocoaPods.org.

hope this helps!