No such module "CreateMLUI"
Asked Answered
C

6

25

I am using macOS Mojave Beta (10.14 18A293u) and Xcode 10.0 Beta (10L176w). I created a Swift Playground and I am unable to import CreateMLUI framework in order to use it. I keep getting an import error.

Playground Screenshot

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

Anyone knows what I am doing wrong?

Thanks in advance.

Cateran answered 6/6, 2018 at 19:43 Comment(2)
There are some suggestions in this thread: forums.developer.apple.com/message/314438#314438Cankerworm
Thanks @Koen found a working solution in that link you provided, will. be posting it as an answer! Thanks again.Cateran
C
48

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 already created a buggy playground (this is important)
  3. Add the import CreateMLUI line
  4. Remove all the other boilerplate code
Cateran answered 6/6, 2018 at 20:3 Comment(0)
U
5

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.

Undercroft answered 23/6, 2019 at 0:54 Comment(0)
J
1

When you create the playground make sure you select "macOS" tab instead of. "iOS".

Jaquelin answered 17/6, 2020 at 7:52 Comment(0)
F
1
  1. Open Xcode menu
  2. Choose Open Developer Tool > Create ML
  3. Press New Document
  4. Select Image Classification
  5. Specify name and a place where the project will be saved
Farsighted answered 3/8, 2021 at 19:22 Comment(0)
L
1

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

Lamrouex answered 6/8, 2021 at 11:34 Comment(0)
L
0

In new versions of macOS, the CreateMLUI library has been deprecated and removed. Instead, create models in CreateML, a developer application inside Xcode.

Landers answered 18/8, 2022 at 9:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.