@yusuke-murata i dont understand why we need to mention MCC and MNC in info.plist? is there any document showing this? I am using this following code, same it always returning No SIM card detected.
my environment as follows,
xcode Version 16.0 beta 3 (16A5202i)
iOS: 18.0 (22A5307i) beta 3
// check iOS 18
if #available(iOS 18.0, *) {
let subscriber = CTSubscriber()
do {
if subscriber.isSIMInserted {
return "SIM card is inserted."
} else {
return "No SIM card detected."
}
} catch {
return "Error determining if SIM is inserted: \.
(error.localizedDescription)"
}
}
Topic:
App & System Services
SubTopic:
Networking
Tags: