title: The code signature version is no longer supported with Xcode 13
body: <p>I get the message <code>Unable to install &quot;App&quot;</code> when running my Xcode 13 project on a physical iPhone running iOS 15. If I click &quot;Details&quot;, I see the below information (most notably <code>The code signature version is no longer supported</code>). This issue appears to happen to some people running Xcode 12. However, I am running Xcode 13.2.1 and macOS Monterey 12.1.</p>
  <p>I have Xcode automatically manage signing under my development team. Today, I edited my App ID Configuration in the Apple Developer Console to add Sign-in With Apple, and got the following message: <code>Adding or removing any capabilities will invalidate any provisioning profiles that include this App ID and they must be regenerated for future use.</code> I suspect this is the cause of my problem, but am not sure what to do to fix it.</p>
  <p>Things I have tried:</p>
  <ul>
  <li>Clean build folder</li>
  <li><a href="https://stackoverflow.com/a/68467307/10868905"><code>--generate-entitlement-der</code> in code signing options</a></li>
  <li><a href="https://stackoverflow.com/a/69588949/10868905">Change frameworks to &quot;Do not Embed&quot;</a></li>
  <li>Disable <code>automatically manage signing</code> and use a newly-generated provisioning profile</li>
  <li><a href="https://stackoverflow.com/questions/44060482/xcode-8-3-xcode-9-0-refresh-provisioning-profile-devices">Refreshed provisioning profiles</a></li>
  </ul>
  <pre><code>Details
  
  Unable to install &quot;App&quot;
  Domain: com.apple.dt.MobileDeviceErrorDomain
  Code: -402620375
  User Info: {
      DVTErrorCreationDateKey = &quot;2022-02-10 03:33:39 +0000&quot;;
      IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
  }
  --
  The code signature version is no longer supported.
  Domain: com.apple.dt.MobileDeviceErrorDomain
  Code: -402620375
  User Info: {
      DVTRadarComponentKey = 261622;
      MobileDeviceErrorCode = &quot;(0xE8008029)&quot;;
      &quot;com.apple.dtdevicekit.stacktrace&quot; = (
      0   DTDeviceKitBase                     0x000000011739c076 DTDKCreateNSErrorFromAMDErrorCode + 220
      1   DTDeviceKitBase                     0x00000001173da6e8 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
      2   DVTFoundation                       0x00000001094b1fb4 DVTInvokeWithStrongOwnership + 71
      3   DTDeviceKitBase                     0x00000001173da432 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1420
      4   IDEiOSSupportCore                   0x000000011093b9ea __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3508
      5   DVTFoundation                       0x00000001095e698b __DVT_CALLING_CLIENT_BLOCK__ + 7
      6   DVTFoundation                       0x00000001095e80f7 __DVTDispatchAsync_block_invoke + 931
      7   libdispatch.dylib                   0x00007ff812d35ad8 _dispatch_call_block_and_release + 12
      8   libdispatch.dylib                   0x00007ff812d36cc9 _dispatch_client_callout + 8
      9   libdispatch.dylib                   0x00007ff812d3ccee _dispatch_lane_serial_drain + 696
      10  libdispatch.dylib                   0x00007ff812d3d7c8 _dispatch_lane_invoke + 366
      11  libdispatch.dylib                   0x00007ff812d477e1 _dispatch_workloop_worker_thread + 758
      12  libsystem_pthread.dylib             0x00007ff812eea074 _pthread_wqthread + 326
      13  libsystem_pthread.dylib             0x00007ff812ee8ffb start_wqthread + 15
  );
  }
  --
  
  Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
      &quot;device_model&quot; = &quot;iPhone12,5&quot;;
      &quot;device_osBuild&quot; = &quot;15.2.1 (19C63)&quot;;
      &quot;device_platform&quot; = &quot;com.apple.platform.iphoneos&quot;;
      &quot;launchSession_schemeCommand&quot; = Run;
      &quot;launchSession_state&quot; = 1;
      &quot;launchSession_targetArch&quot; = arm64;
      &quot;operation_duration_ms&quot; = 4457;
      &quot;operation_errorCode&quot; = &quot;-402620375&quot;;
      &quot;operation_errorDomain&quot; = &quot;com.apple.dt.MobileDeviceErrorDomain&quot;;
      &quot;operation_errorWorker&quot; = IDEInstalliPhoneLauncher;
      &quot;operation_name&quot; = IDEiPhoneRunOperationWorkerGroup;
      &quot;param_consoleMode&quot; = 0;
      &quot;param_debugger_attachToExtensions&quot; = 0;
      &quot;param_debugger_attachToXPC&quot; = 1;
      &quot;param_debugger_type&quot; = 5;
      &quot;param_destination_isProxy&quot; = 0;
      &quot;param_destination_platform&quot; = &quot;com.apple.platform.iphoneos&quot;;
      &quot;param_diag_MainThreadChecker_stopOnIssue&quot; = 0;
      &quot;param_diag_MallocStackLogging_enableDuringAttach&quot; = 0;
      &quot;param_diag_MallocStackLogging_enableForXPC&quot; = 1;
      &quot;param_diag_allowLocationSimulation&quot; = 1;
      &quot;param_diag_gpu_frameCapture_enable&quot; = 0;
      &quot;param_diag_gpu_shaderValidation_enable&quot; = 0;
      &quot;param_diag_gpu_validation_enable&quot; = 0;
      &quot;param_diag_memoryGraphOnResourceException&quot; = 0;
      &quot;param_diag_queueDebugging_enable&quot; = 1;
      &quot;param_diag_runtimeProfile_generate&quot; = 0;
      &quot;param_diag_sanitizer_asan_enable&quot; = 0;
      &quot;param_diag_sanitizer_tsan_enable&quot; = 0;
      &quot;param_diag_sanitizer_tsan_stopOnIssue&quot; = 0;
      &quot;param_diag_sanitizer_ubsan_stopOnIssue&quot; = 0;
      &quot;param_diag_showNonLocalizedStrings&quot; = 0;
      &quot;param_diag_viewDebugging_enabled&quot; = 1;
      &quot;param_diag_viewDebugging_insertDylibOnLaunch&quot; = 1;
      &quot;param_install_style&quot; = 0;
      &quot;param_launcher_UID&quot; = 2;
      &quot;param_launcher_allowDeviceSensorReplayData&quot; = 0;
      &quot;param_launcher_kind&quot; = 0;
      &quot;param_launcher_style&quot; = 0;
      &quot;param_launcher_substyle&quot; = 0;
      &quot;param_runnable_appExtensionHostRunMode&quot; = 0;
      &quot;param_runnable_productType&quot; = &quot;com.apple.product-type.application&quot;;
      &quot;param_runnable_swiftVersion&quot; = &quot;5.5.2&quot;;
      &quot;param_runnable_type&quot; = 2;
      &quot;param_testing_launchedForTesting&quot; = 0;
      &quot;param_testing_suppressSimulatorApp&quot; = 0;
      &quot;param_testing_usingCLI&quot; = 0;
      &quot;sdk_canonicalName&quot; = &quot;iphoneos15.2&quot;;
      &quot;sdk_osVersion&quot; = &quot;15.2&quot;;
      &quot;sdk_variant&quot; = iphoneos;
  }
  --
  
  
  System Information
  
  macOS Version 12.1 (Build 21C52)
  Xcode 13.2.1 (19586) (Build 13C100)
  Timestamp: 2022-02-09T21:33:39-06:00
  </code></pre>