35 images is too many. You'll need to reduce the set.
Image detection accuracy and performance are reduced with larger numbers of detection images. For best results, use no more than around 25 images in this set.
You can support a larger total number of detection images by changing which set of images is active for detection over time. For example, an app that identifies paintings in an art museum might limit the set of detection images based on which area of the museum the user is currently in (after using Core Location to locate the user within the museum).
To detect a different set of images without otherwise affecting the session, call the session's run(_:options:) method with a configuration containing a different detectionImages set and no options.