Reputation: 3017
I am using macOS Mojave Beta (10.14 18A293u) and Xcode 10.0 Beta (10L176w). I created a Swift Playground, but I am unable to import the CreateMLUI
framework to use it. I keep getting an import error.
I have tried creating both an iOS Playground and a macOS Playground
Does anyone know what I am doing wrong?
Thanks in advance.
Upvotes: 25
Views: 7622
Reputation: 3017
While macOS Mojave and Xcode 10 are in beta, you may experience bugs while trying to use CreateML.
@Koen, from one of the comments in my question, found a topic in Apple Developer Forums with some workarounds. What I did was:
import CreateMLUI
lineUpvotes: 48
Reputation: 628
In new versions of macOS, the CreateMLUI library has been deprecated and removed. Instead, create models in CreateML, a developer application inside Xcode.
Upvotes: 0
Reputation: 19
This feature is no longer supported in this environment. You can complete this task in the Create ML app. Follow these steps:
Xcode -> Toolbar -> Open Developer Tool -> Create ML -> New Document
Upvotes: 1
Reputation: 1790
Xcode menu
Open Developer Tool
> Create ML
New Document
Image Classification
Upvotes: 1
Reputation: 314
When you create the playground make sure you select "macOS" tab instead of. "iOS".
Upvotes: 1
Reputation: 75
I found the answer to this problem in the apple developers forum (Can't find the exact link to the post). You simply have to select the macOS tab when creating a playground.
Upvotes: 5