title: Watch OS app not able to connect with iOS app
body: <p>I am trying to connect my Watch OS app with iOS app and fetch some data but I am getting following error when I try to connect with iOS app:</p>
  <blockquote>
  <p>[WC] __28-[WCSession activateSession]_block_invoke_2 sessionReadyForInitialStateWithCompletionHandler failed due to NSXPCConnectionInterrupted</p>
  <p>__44-[WCSession updateApplicationContext:error:]_block_invoke failed due to WCErrorCodeSessionNotActivated
  WatchConnectivity session has not been activated.</p>
  </blockquote>
  <p>iOS app Code:</p>
  <pre><code>- (void) startSession{
  if ([WCSession isSupported]) {
      self.session = [WCSession defaultSession];
      self.session.delegate = self;
      [self.session activateSession];
  }
  </code></pre>
  <p>}</p>
  <p>Watch OS Code:</p>
  <pre><code>func startSession() {
      if(session.activationState != .activated){
          session.delegate = self
          session.activate()
      }
  }
  public func session(_ session: WCSession, activationDidCompleteWith activationState: WCSessionActivationState, error: Error?){
      print(&quot;activationDidCompleteWith&quot;)
      if activationState == WCSessionActivationState.activated {
          NSLog(&quot;Activated&quot;)
          if(WCSession.default().isReachable){
  
              do {
                  try session.updateApplicationContext(
                      [WatchRequestKey : &quot;updateData&quot;]
                  )
              }
              catch let error as NSError {
                  print(&quot;\(error.localizedDescription)&quot;)
              }
          }
      }
      
      if activationState == WCSessionActivationState.inactive {
          NSLog(&quot;Inactive&quot;)
      }
      
      if activationState == WCSessionActivationState.notActivated {
          NSLog(&quot;NotActivated&quot;)
      }
  }
  </code></pre>
  <p>iOS app is in objective C and watch app is in swift</p>
  <p>I execute my iOS app code first and it's delegate methods run but when I run watch os app it fails to execute any delegate method, and produce above error.</p>