Unable to retrieve CarrierName

后端 未结 4 1569
醉梦人生
醉梦人生 2021-02-04 12:08

Using iPhone6, Xcode 8.1, running iOS 10.1.1, executing the following Swift code I keep getting

Unable to retrieve CarrierName

Error mes

4条回答
  •  滥情空心
    2021-02-04 12:31

    On my iOS device this happens because Settings->Privacy->Location Settings<(app name)->Allow Location Settings isn't set to either "Never" or "While Using the App". Once I set it - it works.

提交回复
热议问题