title: Nativescript Unable to apply changes on device (xcodebuild failed with exit code 65)
body: <p>I'm working on a NS8/Angular11 app and I got a new iPhone 11 that I would like to test on. However, I'm running into an <code>ARCHIVE FAILED</code> error and have no idea how else to get around it. I can work on an emulator no problem, but now on my iPhone. When I plug in my computer, I made sure it's not locked.</p>
  <p>I've tried solutions such as to remove my ios platform and re-install it, but nothing worked.</p>
  <p>I also made sure I created a mobile provisioning file on the Apple Developer account, and downloaded it onto my computer. I then clicked on it and Xcode opened on it's own.</p>
  <p>XCODE VERSION: 12.15.1</p>
  <p>iOS VERSION: 14.6</p>
  <p>I keep getting the following errors.</p>
  <pre><code>2021-07-28 18:21:41.419 xcodebuild[9792:271798] CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called
  2021-07-28 18:21:41.785 xcodebuild[9792:271798]  DVTPortal: Service '&lt;DVTPortalViewDeveloperService: 0x7f94de516f50; action='viewDeveloper'&gt;' encountered an unexpected result code from the portal ('1100')
  2021-07-28 18:21:41.785 xcodebuild[9792:271798]  DVTPortal: Error:
  Error Domain=DVTPortalServiceErrorDomain Code=1100 &quot;Your session has expired. Please log in.&quot; UserInfo={payload={
      creationTimestamp = &quot;2021-07-29T01:21:41Z&quot;;
      httpCode = 200;
      protocolVersion = XXXXXX;
      requestUrl = &quot;https://developerservices2.apple.com/services/XXXXXX/viewDeveloper.action&quot;;
      responseId = &quot;4e32c964-e200-4667-b776-d33a143ee9a1&quot;;
      resultCode = 1100;
      resultString = &quot;Your session has expired. Please log in.&quot;;
      userLocale = &quot;en_US&quot;;
      userString = &quot;Your session has expired. Please log in.&quot;;
  }, NSLocalizedDescription=Your session has expired. Please log in.}
  2021-07-28 18:21:42.415 xcodebuild[9792:271666]  DVTPortal: Service '&lt;DVTPortalViewDeveloperService: 0x7f94ddd26d80; action='viewDeveloper'&gt;' encountered an unexpected result code from the portal ('1100')
  2021-07-28 18:21:42.415 xcodebuild[9792:271666]  DVTPortal: Error:
  Error Domain=DVTPortalServiceErrorDomain Code=1100 &quot;Your session has expired. Please log in.&quot; UserInfo={payload={
      creationTimestamp = &quot;2021-07-29T01:21:42Z&quot;;
      httpCode = 200;
      protocolVersion = XXXXXX;
      requestUrl = &quot;https://developerservices2.apple.com/services/XXXXXX/viewDeveloper.action&quot;;
      responseId = &quot;2c1ea44f-fdf4-4fe7-bf08-2bf199a88aeb&quot;;
      resultCode = 1100;
      resultString = &quot;Your session has expired. Please log in.&quot;;
      userLocale = &quot;en_US&quot;;
      userString = &quot;Your session has expired. Please log in.&quot;;
  }, NSLocalizedDescription=Your session has expired. Please log in.}
  2021-07-28 18:21:42.676 xcodebuild[9792:271829]  DVTPortal: Service '&lt;DVTPortalViewDeveloperService: 0x7f94df0a1a30; action='viewDeveloper'&gt;' encountered an unexpected result code from the portal ('1100')
  2021-07-28 18:21:42.677 xcodebuild[9792:271829]  DVTPortal: Error:
  Error Domain=DVTPortalServiceErrorDomain Code=1100 &quot;Your session has expired. Please log in.&quot; UserInfo={payload={
      creationTimestamp = &quot;2021-07-29T01:21:42Z&quot;;
      httpCode = 200;
      protocolVersion = QH65B2;
      requestUrl = &quot;https://developerservices2.apple.com/services/XXXXXX/viewDeveloper.action&quot;;
      responseId = &quot;d7a65c3d-ef9c-4eba-b6e2-3aef97954652&quot;;
      resultCode = 1100;
      resultString = &quot;Your session has expired. Please log in.&quot;;
      userLocale = &quot;en_US&quot;;
      userString = &quot;Your session has expired. Please log in.&quot;;
  }, NSLocalizedDescription=Your session has expired. Please log in.}
  note: Using new build system
  note: Building targets in parallel
  note: Planning build
  note: Analyzing workspace
  note: Constructing build description
  note: Build preparation complete
  .../platforms/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'FirebaseRemoteConfig' from project 'Pods')
  
  ...
  
  ** ARCHIVE FAILED **
  
  Unable to apply changes on device: 00008030-001E60393AD1402E. Error is: Command xcodebuild failed with exit code 65.
  </code></pre>
  <p>Below is my package.json</p>
  <pre><code>&quot;dependencies&quot;: {
      &quot;@angular/animations&quot;: &quot;~11.2.7&quot;,
      &quot;@angular/cdk&quot;: &quot;~11.2.7&quot;,
      &quot;@angular/common&quot;: &quot;~11.2.7&quot;,
      &quot;@angular/compiler&quot;: &quot;~11.2.7&quot;,
      &quot;@angular/core&quot;: &quot;~11.2.7&quot;,
      &quot;@angular/forms&quot;: &quot;~11.2.7&quot;,
      &quot;@angular/material&quot;: &quot;~11.2.7&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~11.2.7&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~11.2.7&quot;,
      &quot;@angular/router&quot;: &quot;~11.2.7&quot;,
      &quot;@bradmartin/nativescript-urlhandler&quot;: &quot;^2.0.1&quot;,
      &quot;@mhtghn/nativescript-highcharts&quot;: &quot;^1.0.2&quot;,
      &quot;@nativescript-community/ble&quot;: &quot;^3.0.25&quot;,
      &quot;@nativescript-community/insomnia&quot;: &quot;^2.0.2&quot;,
      &quot;@nativescript-community/ui-chart&quot;: &quot;^1.1.38&quot;,
      &quot;@nativescript-community/ui-drawer&quot;: &quot;0.0.28&quot;,
      &quot;@nativescript/angular&quot;: &quot;~11.8.0&quot;,
      &quot;@nativescript/core&quot;: &quot;^8.0.8&quot;,
      &quot;@nativescript/firebase&quot;: &quot;^11.1.3&quot;,
      &quot;@nativescript/theme&quot;: &quot;~3.0.1&quot;,
      &quot;@sentry/node&quot;: &quot;6.8.0&quot;,
      &quot;@triniwiz/nativescript-toasty&quot;: &quot;~4.1.3&quot;,
      &quot;bluebird&quot;: &quot;3.5.5&quot;,
      &quot;crypto-es&quot;: &quot;^1.2.7&quot;,
      &quot;nativescript-purchase&quot;: &quot;^2.0.14&quot;,
      &quot;nativescript-sentry&quot;: &quot;^2.0.1&quot;,
      &quot;nativescript-ui-chart&quot;: &quot;^8.0.2&quot;,
      &quot;nativescript-ui-gauge&quot;: &quot;^7.0.2&quot;,
      &quot;nativescript-ui-sidedrawer&quot;: &quot;~9.0.3&quot;,
      &quot;npm-check-updates&quot;: &quot;^11.8.3&quot;,
      &quot;reflect-metadata&quot;: &quot;^0.1.13&quot;,
      &quot;rxjs&quot;: &quot;~6.6.7&quot;,
      &quot;zone.js&quot;: &quot;~0.11.4&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular/compiler-cli&quot;: &quot;~11.2.7&quot;,
      &quot;@nativescript/android&quot;: &quot;8.0.0&quot;,
      &quot;@nativescript/ios&quot;: &quot;8.0.0&quot;,
      &quot;@nativescript/types&quot;: &quot;~8.0.0&quot;,
      &quot;@nativescript/webpack&quot;: &quot;~5.0.0-beta.0&quot;,
      &quot;@ngtools/webpack&quot;: &quot;^11.2.14&quot;,
      &quot;sass&quot;: &quot;~1.35.1&quot;,
      &quot;ts-node&quot;: &quot;~10.0.0&quot;,
      &quot;typescript&quot;: &quot;~4.0.0&quot;
    },
  
  </code></pre>
  <p>Below is the output for my tns doctor</p>
  <pre><code>✔ Your ANDROID_HOME environment variable is set and points to correct directory.
  ✔ Your adb from the Android SDK is correctly installed.
  ✔ The Android SDK is installed.
  ✔ A compatible Android SDK for compilation is found.
  ✔ Javac is installed and is configured properly.
  ✔ The Java Development Kit (JDK) is installed and is configured properly.
  ✔ Xcode is installed and is configured properly.
  ✔ xcodeproj is installed and is configured properly.
  ✔ CocoaPods are installed.
  ✔ CocoaPods update is not required.
  ✔ CocoaPods are configured properly.
  ✔ Your current CocoaPods version is newer than 1.0.0.
  ✔ Python installed and configured correctly.
  ✔ The Python 'six' package is found.
  ✔ Xcode version 12.5.1 satisfies minimum required version 10.
  ✔ Getting NativeScript components versions information...
  ✔ Component nativescript has 8.0.2 version and is up to date.
  ✔ Component @nativescript/core has 8.0.8 version and is up to date.
  ✔ Component @nativescript/ios has 8.0.0 version and is up to date.
  ✔ Component @nativescript/android has 8.0.0 version and is up to date.
  
  </code></pre>