Device vs. Simulator Linguistic Schemes

后端 未结 2 1903
忘了有多久
忘了有多久 2020-12-18 05:02

Does anyone understand why this is happening?

On any simulator all of the schemes are found with the following code:

NSArray

        
相关标签:
2条回答
  • 2020-12-18 05:13

    After tireless research, sleepless nights, and three trips to the ward, I found out the problem. While the fix was by all means the poor man's solution, it worked nonetheless.


    For whatever reason my iPhone 6s iOS 11.2.5 didn't feel like installing all of the available linguistic schemes when I originally set up my phone? Either that or it decided to remove them one day when it was bored.

    Regardless, the solution was... drum roll...

    Uninstall the target language...then reinstall it.


    I guess this "reset" the language package to re-include these schemes. Happy codinggg

    0 讨论(0)
  • 2020-12-18 05:15

    The WWDC presentation covering this topic shows that far from all languages are supported for all schemes. In fact, several schemes are only supported for the following languages:

    • English
    • French
    • Italian
    • German
    • Portuguese
    • Russian
    • Turkish

    If you download the slides on the linked page below you can see a table of this on slide 136.

    When I run your code on my devices they all report the full set that you got on the simulator for en. With other language codes I get less. Did you check your iOS versions on your devices vs simulator?

    WWDC 2017:208 - Natural Language Processing and your Apps

    0 讨论(0)
提交回复
热议问题