I am using the SIMInserted API on Xcode 16 beta. However, when I checked with a SIM card inserted, it returned "No".
[Enviroment]
Xcode:16beta
iOS:18beta1,18beta2
[The modified implementation area is as follows]
1.Add "CarrierDescriptors" to the plist.
<key>CarrierDescriptors</key>
<array>
<dict>
<key>MCC</key>
<string>440</string>
<key>MNC</key>
<string>10</string>
</dict>
</array>
2.Add "SIM Inserted for Wireless Carriers" to the capabilities.
<key>com.apple.developer.coretelephony.sim-inserted</key>
<true/>
3.In case of iOS 18 and above, perform SIM detection using "isSIMInserted" of CTSubscriber.
- (BOOL)isSIMInseted {
if(@available(iOS 18.0,*)){
CTSubscriber* ctSubscriber = [CTSubscriber new];
return = ctSubscriber.isSIMInserted;
}
return NO;
}
Is there any mistake in the implementation steps you provided? Why is it not possible to retrieve the desired information with this implementation?
Please assistant me.
Selecting any option will automatically load the page