I've just started learning ML in swift and tried to make a simple classifier from this article https://medium.com/@jullynobre1/understanding-coreml-and-createml-with-iris-dataset-6f04318b689e. But Bundle.main.url always returns nil.
enter image description here "Create groups" and "Create folder references" didn't work.
enter image description here I added file to Build Phase but nothing. These advices didn't help me Bundle.main.path(forResource:ofType:inDirectory:) returns nil. I have a console application. Maybe should I change type of it?
This is my code
import Foundation
let csvData = Bundle.main.url(forResource: "iris", withExtension: "csv")
print(csvData)