Coreml EXC_BAD_ACCESS (code=1, address=0x7d66228) Error on WatchOs

349 Views Asked by At

I have a coreml model created with Create ML. The model works on iPhone Simulator. However it doesn't work on watch simulator. What may be the problem? It gives the following error:

EXC_BAD_ACCESS (code=1, address=0x7d66228) expression produced error: error: /var/folders/zb/dn1s2sqj66789g1ht_cz3glh0000gn/T/expr1-5fb02f..swift:1:65: error: use of undeclared type 'CoreML' Swift._DebuggerSupport.stringForPrintObject(Swift.UnsafePointer(bitPattern: 0x1932c0)!.pointee)

this error is related to below auto generated function.

func prediction(input: HandWashInput, options: MLPredictionOptions) throws -> HandWashOutput {
    let outFeatures = try model.prediction(from: input, options:options)
    return HandWashOutput(features: outFeatures)
}

Simulator: watch 5 series XCode: 11.4 Swift version: 5

enter image description here

0

There are 0 best solutions below