Skip to content

Contacts iOS xcode9 beta1

Vincent Dondain edited this page Jun 5, 2017 · 2 revisions

#Contacts.framework

diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNContactFetchRequest.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNContactFetchRequest.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNContactFetchRequest.h	2016-09-23 22:00:05.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNContactFetchRequest.h	2017-05-23 01:22:09.000000000 -0400
@@ -18,11 +18,14 @@
 NS_CLASS_AVAILABLE(10_11, 9_0)
 @interface CNContactFetchRequest : NSObject <NSSecureCoding>
 
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new  NS_UNAVAILABLE;
 
 /*!
- *  @abstract Use this initiliazer, using init raises an exception. Pass in the properties to fetch for the returned contacts.
+ *  @param      keysToFetch
+ *              The properties to fetch for the returned contacts.
  *
- *  @discussion Should only fetch the properties that will be used.
+ *  @discussion Only fetch the properties that will be used.
  */
 - (instancetype)initWithKeysToFetch:(NSArray <id<CNKeyDescriptor>>*)keysToFetch NS_DESIGNATED_INITIALIZER;
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNContactStore.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNContactStore.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNContactStore.h	2016-05-03 18:21:25.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNContactStore.h	2017-05-25 06:40:40.000000000 -0400
@@ -101,7 +101,7 @@
  * @param identifier The identifier of the contact to fetch.
  * @param keys The properties to fetch into the returned CNContact object. Should only fetch the properties that will be used. Can combine contact keys and contact key descriptors.
  * @param error If an error occurs, contains error information.
- * @return The unified contact matching or linked to the identifier. If no contact with the given identifier is found, nil is returned abd error is set to CNErrorCodeRecordDoesNotExist.
+ * @return The unified contact matching or linked to the identifier. If no contact with the given identifier is found, nil is returned and error is set to CNErrorCodeRecordDoesNotExist.
  */
 - (nullable CNContact *)unifiedContactWithIdentifier:(NSString *)identifier keysToFetch:(NSArray<id<CNKeyDescriptor>> *)keys error:(NSError *__nullable *__nullable)error;
 
@@ -172,9 +172,9 @@
  *
  *  @discussion This identifier can be used to fetch the default container.
  *
- *  @return The identifier of the default container.
+ *  @return The identifier of the default container. If the caller lacks Contacts authorization or an error occurs, nil is returned.
  */
-- (NSString *)defaultContainerIdentifier;
+- (nullable NSString *)defaultContainerIdentifier;
 
 @end
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNError.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNError.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNError.h	2016-09-23 22:00:05.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNError.h	2017-05-23 01:22:09.000000000 -0400
@@ -30,6 +30,9 @@
     CNErrorCodePredicateInvalid = 400,
     
     CNErrorCodePolicyViolation = 500,
+    
+    CNErrorCodeClientIdentifierInvalid = 600,
+    CNErrorCodeClientIdentifierDoesNotExist = 601,
 }  NS_ENUM_AVAILABLE(10_11, 9_0);
 
 /*! When available an array of one or more CNContact, CNGroup or CNContainer objects for which the error code applies. */
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNPhoneNumber.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNPhoneNumber.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNPhoneNumber.h	2016-09-23 22:00:05.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNPhoneNumber.h	2017-05-23 01:22:09.000000000 -0400
@@ -20,8 +20,11 @@
 @interface CNPhoneNumber : NSObject <NSCopying, NSSecureCoding>
 
 /*! These will return nil if the stringValue is nil. */
-+ (instancetype)phoneNumberWithStringValue:(NSString *)stringValue;
-- (instancetype)initWithStringValue:(NSString *)string;
++ (nullable instancetype)phoneNumberWithStringValue:(NSString *)stringValue;
+- (nullable instancetype)initWithStringValue:(NSString *)string;
+
+- (instancetype)init NS_DEPRECATED(10_11, 10_13, 9_0, 11_0, "Use initWithStringValue:");
++ (instancetype)new  NS_DEPRECATED(10_11, 10_13, 9_0, 11_0, "Use phoneNumberWithStringValue:");
 
 @property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *stringValue;
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNPostalAddress.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNPostalAddress.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNPostalAddress.h	2017-02-20 19:00:16.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNPostalAddress.h	2017-05-23 01:22:09.000000000 -0400
@@ -30,7 +30,7 @@
 @property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *ISOCountryCode;
 
 /*! Returns a user displayable property name. */
-+ (NSString*)localizedStringForKey:(NSString *)key;
++ (NSString *)localizedStringForKey:(NSString *)key;
 
 @end
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNPostalAddressFormatter.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNPostalAddressFormatter.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNPostalAddressFormatter.h	2016-09-23 22:00:05.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNPostalAddressFormatter.h	2017-05-23 01:22:09.000000000 -0400
@@ -2,7 +2,7 @@
 //  CNPostalAddressFormatter.h
 //  Contacts
 //
-//  Copyright (c) 2015 Apple Inc. All rights reserved.
+//  Copyright (c) 2015–2016 Apple Inc. All rights reserved.
 //
 
 #import <Foundation/Foundation.h>
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/Contacts.apinotes /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/Contacts.apinotes
--- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/Contacts.apinotes	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/Contacts.apinotes	2017-05-23 01:22:09.000000000 -0400
@@ -0,0 +1,5 @@
+---
+Name: Contacts
+Tags:
+- Name: CNErrorCode
+  NSErrorDomain: CNErrorDomain
Clone this wiki locally