Error running CreateMLUI showInLiveView

When I try to run the following code in (macOS) Playground (with Xcode 10.0 Beta, on macOS Mojave 10.14 Beta)

import CreateMLUI
import Foundation

let builder = MLImageClassifierBuilder()
builder.showInLiveView()


The console shows:

objc[6634]: Class CIBilateralGridHash is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601dce8) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c478). One of the two will be used. Which one is undefined.
objc[6634]: Class CIBoxBlur3_7 is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601dae0) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c4f0). One of the two will be used. Which one is undefined.
objc[6634]: Class CISobelHV is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601db30) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c540). One of the two will be used. Which one is undefined.
objc[6634]: Class CIMorphologicalMax5Mono is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601db80) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c590). One of the two will be used. Which one is undefined.
objc[6634]: Class CIConfidenceThresholdProcessor is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601dbd0) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c5e0). One of the two will be used. Which one is undefined.
objc[6634]: Class CIConfidenceThreshold is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601dc20) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c630). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitPrepareStage is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601dc70) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c680). One of the two will be used. Which one is undefined.
objc[6634]: Class CIConfidenceMap is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601dcc0) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c6d0). One of the two will be used. Which one is undefined.
objc[6634]: Class MetalFaceMask is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601d658) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c6f8). One of the two will be used. Which one is undefined.
objc[6634]: Class CIBilateralSolverCPU is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601e738) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c748). One of the two will be used. Which one is undefined.
objc[6634]: Class FBSProcessor is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601d540) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c7c0). One of the two will be used. Which one is undefined.
objc[6634]: Class FBSProcessorCPU is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601d590) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c810). One of the two will be used. Which one is undefined.
objc[6634]: Class FBSProcessorGPU is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601d5e0) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c860). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitLightingSide is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601ae30) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c900). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitLightingFront is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601ae80) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c950). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitLightingStrobe is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601aed0) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c9a0). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitLightingContour is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601af20) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981c9f0). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitLightingSpot is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601af70) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981ca40). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitLightingNeckContour is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601e990) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981ca90). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitFaceMask is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96018518) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cb08). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitFaceMaskProcessorKernel is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff960184c8) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cab8). One of the two will be used. Which one is undefined.
objc[6634]: Class FaceLandmarks is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96018568) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cb58). One of the two will be used. Which one is undefined.
objc[6634]: Class ComputedFaceData is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96018590) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cb80). One of the two will be used. Which one is undefined.
objc[6634]: Class LightingFacePoints is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96016290) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cc20). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitToothMask is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601ea58) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cc98). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitToothMaskProcessor is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601ea08) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cc48). One of the two will be used. Which one is undefined.
objc[6634]: Class CPUFaceMask is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601e9b8) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cce8). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPassThroughSelectFrom3 is implemented in both /System/Library/CoreImage/CIPassThrough.cifilter/Contents/MacOS/CIPassThrough (0x1097a5b50) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cd60). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPassThroughFilter is implemented in both /System/Library/CoreImage/CIPassThrough.cifilter/Contents/MacOS/CIPassThrough (0x1097a5ba0) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cdb0). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPassThroughColorFilter is implemented in both /System/Library/CoreImage/CIPassThrough.cifilter/Contents/MacOS/CIPassThrough (0x1097a5bf0) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981ce00). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPassThroughWarpFilter is implemented in both /System/Library/CoreImage/CIPassThrough.cifilter/Contents/MacOS/CIPassThrough (0x1097a5c40) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981ce50). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPassThroughGeneralFilter is implemented in both /System/Library/CoreImage/CIPassThrough.cifilter/Contents/MacOS/CIPassThrough (0x1097a5c90) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cea0). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPassThroughGeneralAltFilter is implemented in both /System/Library/CoreImage/CIPassThrough.cifilter/Contents/MacOS/CIPassThrough (0x1097a5ce0) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cef0). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPassThroughIntermediateFilter is implemented in both /System/Library/CoreImage/CIPassThrough.cifilter/Contents/MacOS/CIPassThrough (0x1097a5d30) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cf40). One of the two will be used. Which one is undefined.
objc[6634]: Class CIBilateralSolverGPU is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601e8c8) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cf68). One of the two will be used. Which one is undefined.
objc[6634]: Class Rgon is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96019b98) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981cfb8). One of the two will be used. Which one is undefined.
objc[6634]: Class RgonStack is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96019be8) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d008). One of the two will be used. Which one is undefined.
objc[6634]: Class Polyline is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96018ec8) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d058). One of the two will be used. Which one is undefined.
objc[6634]: Class PolylinePair is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96018f18) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d0a8). One of the two will be used. Which one is undefined.
objc[6634]: Class TopBottomRegion is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96018f40) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d0d0). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitLocalContrast is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601a750) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d170). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitEffect is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff960162e0) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d1c0). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitEffectLight is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96016330) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d210). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitEffectCommercial is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96016380) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d260). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitEffectStudio is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff960163d0) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d2b0). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitEffectContour is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96016420) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d300). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitEffectBlack is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96016470) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d350). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitEffectStage is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff960164c0) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d3a0). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitEffectBlackoutMono is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96016510) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d3c8). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitEffectStageMono is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff96016560) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d440). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitSkinMask is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601e1e8) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d4b8). One of the two will be used. Which one is undefined.
objc[6634]: Class CIPortraitSkinMaskProcessor is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7fff9601e198) and /System/Library/CoreImage/PortraitFilters.cifilter/Contents/MacOS/PortraitFilters (0x10981d468). One of the two will be used. Which one is undefined.

Replies

Same problem. System upgraded from 10.13.5 and both Xcode 9.4.1 and Xcode 10 beta in /Applications folder

This code works for me (same as yours except no import of Foundation):


import CreateMLUI

let builder = MLImageClassifierBuilder()
builder.showInLiveView()


Also Mojave beta + Xcode 10 beta.


Not that it runs in a stable manner! I am able to run the classifier, run test data through it, save the model -- but at this point Xcode is toast, and I have to kill it from Activity Monitor since for me Force Quit does nothing ...