FlineDev / CSVImporter

Import CSV files line by line with ease

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swift 3.1 compile errors

Coltuxumab opened this issue · comments

Admitted novice here.

I've been using CSVImporter in my project for a while now without issue. Tried to make a new build today and ran into the following error:
Module compiled with Swift 3.0.2 cannot be imported in Swift 3.1
For the line:
import CSVImporter

So I re-downloaded the CSVImporter as well as HandySwift, opened the .xcworkspace in Xcode, and made new frameworks. I replaced the old frameworks in my project with the new ones and this fixed the previous error but introduced new ones:
Cannot specialize non-generic type 'module<CSVimporter'
Use of undeclared type 'CSVimporter'
For the line:
var fileURLImporter = CSVImporter<[String: String]>(url: destinationFileUrl)

This now seems to be well above my head. Is this a problem with the CSVImporter code, or is this my issue? Any guidance would be appreciated.

The first problem was just a call for action: "Please re-compile the library" what you seem to have done. But maybe you haven't done it correctly? I don't know. The error states that CSVImporter is a non-generic type what definitely isn't the case as you can see in this line. Without example code (feel free to send it to my email address if you want) I can't give more help than this. In any case it doesn't sound to me like you're using Carthage, are you? With Carthage and following the instructions in their README all should work just fine.

I tried to use Carthage months back and couldn't do it, so I just downloaded everything manually. I just gave it another shot and was able to compile everything without issue! Thank you for the nudge in the right direction.