Categories
Apple Create ML Machine Learning Swift

Error – The VNCoreMLTransform request failed

If you are working with the vision framework and you are getting this error, while testing the iOS app in simulator, well, test it on the actual device and see if the error goes away. Very unfortunate error description.

This was very confusing personally, since the code was working fine while I was using it on an macOS app. Also I did not find any warnings anywhere that you are supposed to only test it on an actual device. Not sure how this makes any sense, but glad that I figure it out, It drove me crazy for the last 2 days.

By Cosmin Dolha

Generalist at the intersection of code, art, and systems—combining 20+ years of software, AI, hardware, and 3D design with a passion for economics, probabilities, and human behavior to turn ideas into working prototypes.