xcodexcode10macos-mojavecreatemlcreatemlui

No such module "CreateMLUI"


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.

Playground Screenshot

I have tried creating both an iOS Playground and a macOS Playground

Does anyone know what I am doing wrong?

Thanks in advance.


Solution

  • 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:

    1. Create a new single view Mac OS (NOT iOS) playground
    2. Use a completely different name if you have already created a buggy playground (this is important)
    3. Add the import CreateMLUI line
    4. Remove all the other boilerplate code