Using iPhone6, Xcode 8.1, running iOS 10.1.1, executing the following Swift code I keep getting
Unable to retrieve CarrierName
Error mes
As a solution to a different issue I did the following. Whether this fixes it or just suppresses the msg I don't know, as I was getting the msg but it was never crashing my app.
In Xcode
credit here : https://stackoverflow.com/a/40160779
Maybe this is a litle dumb but check that XCode Maps capabilities is active :) .
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.
Tray adding CoreTelephony
to the AppDelegate maybe? You ViewController implementation is not accessing any CoreTelephony framework methods, thus your problem lies elsewhere.