-
-
Re: Can't import CreateMLUI
Twitched Jun 5, 2018 4:33 AM (in response to tychop)Right now you can try iOS 12 only using the beta version of Xcode, and you will also need macOS Mojave if you want to use the new Create ML tools.
Source https://www.hackingwithswift.com/articles/121/whats-new-in-ios-12
-
-
Re: Can't import CreateMLUI
angelagmurtha Jun 5, 2018 6:09 AM (in response to Harcker2)When you creat the playgrond, choose macOS. That worked for me.
-
Re: Can't import CreateMLUI
milkyway1705 Jun 5, 2018 6:35 AM (in response to angelagmurtha)didnt work for me, ( I am on Mojave and xcode 10 beta).
-
Re: Can't import CreateMLUI
Twitched Jun 5, 2018 7:02 AM (in response to angelagmurtha)For the import this worked, only the MLImageClassifierBuilder isn't available in macOS 10.13.x
-
-
Re: Can't import CreateMLUI
EinharchAltPlus Jun 5, 2018 11:43 AM (in response to Harcker2)Just in case anyone's still wondering, you need:
- A Mac computer on OSX Mojave beta (10.14)
- Xcode 10 beta
Then, the steps are as follow:
- Create a Playground
- By default, it would be set to iOS, so show Inspector (right pane) and change to macOS
- Remove any iOS code (like import UIKit), and write your macOS code (start by import CreateMLUI)
- It's still buggy, so if it doesn't compile, save then Command+Q to quite Xcode
- Relaunch Xcode, compile, hopefully it would work this time.
-
Re: Can't import CreateMLUI
daveklotz Jun 5, 2018 8:59 PM (in response to Harcker2)I originally made the same dumb mistake a lot of other people had and created an iOS playground, but even after creating a Mac OS one I still go the same error. Quitting didn't seem to fix it. What did was:
- Create a new single view Mac OS playground
- Use a completely different name
- Add the import CreateMLUI line
- Remove all the other boilerplate
Hope you find a solution...
-
Re: Can't import CreateMLUI
ennnnzo Jun 5, 2018 9:41 PM (in response to daveklotz)That works!
Really should bump this up to the top!
-
Re: Can't import CreateMLUI
ravifromjodhpur Jul 3, 2018 12:16 AM (in response to Harcker2)CHECKLIST:
1. Select macOS and NOT iOS.
2. Xcode version should be 10+
3. MacOS version should be mojave
STEPS:
1. Create a new playground with macOS application type playground.
2. If creatMLUI is not shown then, close the xcode and restart it.
3. As this is still in beta, it takes few time. Repeat step 2 till compliler identifies "CreateMLUI".