Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSIndexErrorDomain error -1005

I am getting this error "The operation couldn’t be completed. (CSIndexErrorDomain error -1005.)" while running code for spotlight search on ipad.Does anyone know how to solve this error?

like image 814
bittu Avatar asked Oct 19 '15 08:10

bittu


1 Answers

The CoreSpotlight is available on iOS 9 onwards.

Though your device maybe at iOS 9.x, it still may not work if it is a older device version.

From Apple docs.

Although app search is available for iOS 9 users, the search functionality of NSUserActivity and Core Spotlight is not supported on iPhone 4s, iPad 2, iPad (3rd generation), iPad mini, and iPod touch (5th generation)."

So if you are testing on any of the above devices or simulators for the same you will get the CSIndexErrorDomain error -1005.

From Corespotlight API documentation

CSIndexErrorCodeIndexingUnsupported = -1005, //Indexing isn't supported on this device

like image 115
mmmanishs Avatar answered Sep 29 '22 12:09

mmmanishs