The following simple swift script fails to run w/ Swift 5.9 but runs correctly w/ Swift 5.8 (if anybody from Apple sees this: FB13538711
):
#!/usr/bin/swift
import Foundation
import TabularData
let sourceURL = URL(string: "https://loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt")!
let dataFrame = try DataFrame(contentsOfCSVFile: sourceURL, options: .init(hasHeaderRow: false, delimiter: "|"))
print(dataFrame)
The same happens for other frameworks, like PDFKit
.
This thread shows a workaround for making PDFKit
work (import Quartz.PDFKit
or just Quartz
instead of PDFKit
): https://discussions.apple.com/thread/255145307?sortBy=best.
Would there be a similar workaround for making TabularData
work until we have a new Xcode release which fixes the issue? How to find it?