Skip to content

HealthKit iOS xcode9 beta4

Sebastien Pouliot edited this page Jul 24, 2017 · 1 revision

#HealthKit.framework

diff -ruN /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h /Applications/Xcode9-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h
--- /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h	2017-06-30 23:06:55.000000000 -0400
+++ /Applications/Xcode9-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h	2017-07-14 18:18:29.000000000 -0400
@@ -18,7 +18,7 @@
  @class         HKCDADocumentSample
  @abstract      A sample object representing a CDA document.
  */
-HK_EXTERN API_AVAILABLE(ios(10.0))
+HK_EXTERN API_AVAILABLE(ios(10.0)) __WATCHOS_PROHIBITED
 @interface HKCDADocumentSample : HKDocumentSample
 
 /*!
@@ -54,7 +54,7 @@
 
 @end
 
-HK_EXTERN API_AVAILABLE(ios(11.0))
+HK_EXTERN API_AVAILABLE(ios(11.0)) __WATCHOS_PROHIBITED
 @interface HKCDADocument : NSObject
 
 /*!
diff -ruN /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h /Applications/Xcode9-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h
--- /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h	2017-06-30 23:11:49.000000000 -0400
+++ /Applications/Xcode9-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h	2017-07-14 18:18:29.000000000 -0400
@@ -80,7 +80,7 @@
                 the user, if necessary, completed successfully and was not cancelled by the user.  It does NOT indicate
                 whether the application was granted authorization.
  */
-- (void)handleAuthorizationForExtensionWithCompletion:(void (^)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(ios(9.0)) NS_EXTENSION_UNAVAILABLE("Not available to extensions");
+- (void)handleAuthorizationForExtensionWithCompletion:(void (^)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_EXTENSION_UNAVAILABLE("Not available to extensions");
 
 /*!
  @method        earliestPermittedSampleDate
@@ -238,7 +238,7 @@
  @discussion    This method will asynchronously begin a workout session. The methods on the session's delegate will be 
                 called when the session has successfully started or fails to start.
  */
-- (void)startWorkoutSession:(HKWorkoutSession *)workoutSession API_AVAILABLE(watchos(2.0));
+- (void)startWorkoutSession:(HKWorkoutSession *)workoutSession API_AVAILABLE(watchos(2.0)) API_UNAVAILABLE(ios);
 
 /*!
  @method        endWorkoutSession:
@@ -247,7 +247,7 @@
                 transition to HKWorkoutSessionStateEnded. Once a workout session is ended, it cannot be reused to start
                 a new workout session.
  */
-- (void)endWorkoutSession:(HKWorkoutSession *)workoutSession API_AVAILABLE(watchos(2.0));
+- (void)endWorkoutSession:(HKWorkoutSession *)workoutSession API_AVAILABLE(watchos(2.0)) API_UNAVAILABLE(ios);
 
 /*!
  @method        pauseWorkoutSession:
@@ -256,7 +256,7 @@
                 will transition to HKWorkoutSessionStatePaused. An HKWorkoutEventTypePause will be generated and
                 delivered to the workout session's delegate.
  */
-- (void)pauseWorkoutSession:(HKWorkoutSession *)workoutSession API_AVAILABLE(watchos(3.0));
+- (void)pauseWorkoutSession:(HKWorkoutSession *)workoutSession API_AVAILABLE(watchos(3.0)) API_UNAVAILABLE(ios);
 
 /*!
  @method        resumeWorkoutSession:
@@ -265,7 +265,7 @@
                 will transition to HKWorkoutSessionStateRunning. An HKWorkoutEventTypeResume will be generated and
                 delivered to the workout session's delegate.
  */
-- (void)resumeWorkoutSession:(HKWorkoutSession *)workoutSession API_AVAILABLE(watchos(3.0));
+- (void)resumeWorkoutSession:(HKWorkoutSession *)workoutSession API_AVAILABLE(watchos(3.0)) API_UNAVAILABLE(ios);
 
 /*!
  @method        startWatchAppWithWorkoutConfiguration:completion:
@@ -275,7 +275,7 @@
                 protocol will be called with the HKWorkoutConfiguration as a parameter. The receiving Watch app can use
                 this configuration object to create an HKWorkoutSession and start it with -startWorkoutSession:.
  */
-- (void)startWatchAppWithWorkoutConfiguration:(HKWorkoutConfiguration *)workoutConfiguration completion:(void (^)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(ios(10.0));
+- (void)startWatchAppWithWorkoutConfiguration:(HKWorkoutConfiguration *)workoutConfiguration completion:(void (^)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(watchos);
 
 @end
 
diff -ruN /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h /Applications/Xcode9-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h
--- /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h	2017-06-30 02:28:40.000000000 -0400
+++ /Applications/Xcode9-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h	2017-07-14 19:24:36.000000000 -0400
@@ -21,7 +21,7 @@
     HKWorkoutSessionStateRunning,
     HKWorkoutSessionStateEnded,
     HKWorkoutSessionStatePaused API_AVAILABLE(watchos(3.0)),
-} API_AVAILABLE(watchos(2.0));
+} API_AVAILABLE(watchos(2.0)) API_UNAVAILABLE(ios);
 
 
 /*!
@@ -76,7 +76,7 @@
  @class         HKWorkoutSession
  @abstract      An HKWorkoutSession is an object describing the properties of a workout activity session.
  */
-HK_EXTERN API_AVAILABLE(watchos(2.0))
+HK_EXTERN API_AVAILABLE(watchos(2.0)) API_UNAVAILABLE(ios)
 @interface HKWorkoutSession : NSObject <NSSecureCoding>
 
 /*!
@@ -160,7 +160,7 @@
  @abstract      This protocol should be implemented to be notified when a workout session's state changes.
  @discussion    The methods on this protocol are called on an anonymous serial background queue.
  */
-API_AVAILABLE(watchos(2.0))
+API_AVAILABLE(watchos(2.0)) API_UNAVAILABLE(ios)
 @protocol HKWorkoutSessionDelegate <NSObject>
 
 /*!
Clone this wiki locally