Skip to content

CoreTelephony macOS xcode14.0 beta3

Manuel de la Pena edited this page Jul 18, 2022 · 3 revisions

#CoreTelephony.framework https://github.com/xamarin/xamarin-macios/pull/15533

diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h	2022-06-17 10:25:32.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h	2022-06-30 18:26:19.000000000 -0500
@@ -13,7 +13,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-CORETELEPHONY_CLASS_AVAILABLE(4_0)
+CORETELEPHONY_CLASS_DEPRECATED(4_0, 16_0, "Deprecated with no replacement")
 @interface CTCarrier : NSObject
 
 /*
@@ -22,7 +22,10 @@
  * Discussion:
  *   An NSString containing the name of the subscriber's cellular service provider.
  */
-@property (nonatomic, readonly, retain, nullable) NSString *carrierName __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
+@property (nonatomic, readonly, retain, nullable) NSString *carrierName
+API_UNAVAILABLE(macos, tvos)
+API_DEPRECATED("Deprecated; returns '--' at some point in the future", ios(4.0, 16.0), watchos(3.0, 9.0))
+;
 
 /*
  * mobileCountryCode
@@ -31,7 +34,11 @@
  *   An NSString containing the mobile country code for the subscriber's 
  *   cellular service provider, in its numeric representation
  */
-@property (nonatomic, readonly, retain, nullable) NSString *mobileCountryCode __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
+@property (nonatomic, readonly, retain, nullable) NSString *mobileCountryCode
+API_UNAVAILABLE(macos, tvos)
+API_DEPRECATED("Deprecated; returns '65535' at some point in the future", ios(4.0, 16.0), watchos(3.0, 9.0))
+;
+
 
 /*
  * mobileNetworkCode
@@ -40,7 +47,11 @@
  *   An NSString containing the  mobile network code for the subscriber's 
  *   cellular service provider, in its numeric representation
  */
-@property (nonatomic, readonly, retain, nullable) NSString *mobileNetworkCode __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
+@property (nonatomic, readonly, retain, nullable) NSString *mobileNetworkCode
+API_UNAVAILABLE(macos, tvos)
+API_DEPRECATED("Deprecated; returns '65535' at some point in the future", ios(4.0, 16.0), watchos(3.0, 9.0))
+;
+
 
 /*
  * isoCountryCode
@@ -51,7 +62,10 @@
  *   country code string
  */
 
-@property (nonatomic, readonly, retain, nullable) NSString* isoCountryCode __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
+@property (nonatomic, readonly, retain, nullable) NSString* isoCountryCode
+API_UNAVAILABLE(macos, tvos)
+API_DEPRECATED("Deprecated; returns '--' at some point in the future", ios(4.0, 16.0), watchos(3.0, 9.0))
+;
 
 /*
  * allowsVOIP
@@ -61,7 +75,10 @@
  *   made on its network, NO otherwise.
  */
 
-@property (nonatomic, readonly, assign) BOOL allowsVOIP __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
+@property (nonatomic, readonly, assign) BOOL allowsVOIP
+API_UNAVAILABLE(macos, tvos)
+API_DEPRECATED("Deprecated; returns YES at some point in the future", ios(4.0, 16.0), watchos(3.0, 9.0))
+;
 
 @end
 
Clone this wiki locally