In my Swift project in Xcode, import CreateMLUI says no such module. Has this been replaced or just removed?

  • 1
    xcode is an IDE for several languages which one are you using? Where does CreateMLUI come from - ie where is its documentation
    – mmmmmm
    Commented May 15, 2022 at 21:13

2 Answers 2


You should ensure that you have chosen to create a project for macOS when starting your Xcode project - as this module is only available for macOS. If you have chosen to start an iOS project, you will get the error message you're seeing.

  • No. It seems to be gone in Monterey. Commented May 17, 2022 at 2:07

Yes and No it has been replaced Solution ->

  1. Xcode
  2. Toolbar
  3. Open Developer Tools
  4. Create ML
  5. Choose New Document
  6. Choose an Image Classification
  7. Give it the Training and Testing Data

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .