You can fix this error with the following code, however, predictions simply do not work correctly in the Simulator, you must use an actual device:
#if targetEnvironment(simulator)
imageClassificationRequest.usesCPUOnly = true;
#endif
You can fix this error with the following code, however, predictions simply do not work correctly in the Simulator, you must use an actual device:
#if targetEnvironment(simulator)
imageClassificationRequest.usesCPUOnly = true;
#endif