I'm making use of the following code to obtain the mobileNetworkCode:
let ctCarrier = CTCarrier()
func getMNC() -> String {
if let mnc = ctCarrier.mobileNetworkCode {
return mnc
}
return "nil"
}
Using any properties of CTCarrier returns nil and seems like a bug from Apple.
Any workaround as to this problem?