UIReferenceLibraryViewController problem

Hi,

I am trying to use .dictionaryHasDefinition(forTerm: ) to test if a definition exists, but I get this error message:


"Unable to copy asset information from https://mesu.apple.com/assets/ for asset type com.apple.MobileAsset.DictionaryServices.dictionary2"


I read that UIKit contains a dictionary, but perhaps it doesn't and I have to import it?

Answered by OOPer in 383974022

Have you tested on the actual device?


As far as I checked, recent simulators do not include Dictionaries and you may need to test your code on the actual device.

Accepted Answer

Have you tested on the actual device?


As far as I checked, recent simulators do not include Dictionaries and you may need to test your code on the actual device.

Thanks. That was the problem.

UIReferenceLibraryViewController problem
 
 
Q