CreateML no longer works even when testing with Apples Provided tabular example

After collecting data I wanted to create an ML model I have done this before but for some reason I was getting the error:

error: Couldn't lookup symbols:  CreateML.MLDataTable.init(contentsOf: Foundation.URL, options: CreateML.MLDataTable.ParsingOptions) throws -> CreateML.MLDataTable  CreateML.MLDataTable.init(contentsOf: Foundation.URL, options: CreateML.MLDataTable.ParsingOptions) throws -> CreateML.MLDataTable

So I went to test a working example that was created by apple using this link: https://developer.apple.com/documentation/createml/creating_a_model_from_tabular_data

After running this test with no data changed, I still get the same error logged. I don't know if I'm doing something wrong. Any advice would be greatly appreciated.

I had this exact same problem today. I resolved it as follows:

  1. I removed my current reference to the CreateML library
  2. I went to Build Phases tab for my project and added libswiftCreateML.tbd to the "Link Binary With Libraries" section.
CreateML no longer works even when testing with Apples Provided tabular example
 
 
Q