Can't run Xcode project on iPhone

Hi, I'm trying to test an app on a iPhone and I get this error Unable to install "[app name]". If I click on the button "details", I get this:

Unable to install "stundenplan"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620375
--
The code signature version is no longer supported.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620375
User Info: {
    DVTRadarComponentKey = 261622;
    MobileDeviceErrorCode = "(0xE8008029)";
    "com.apple.dtdevicekit.stacktrace" = (
	0   DTDeviceKitBase                     0x000000012aaa5c8f DTDKCreateNSErrorFromAMDErrorCode + 220
	1   DTDeviceKitBase                     0x000000012aae4241 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
	2   DVTFoundation                       0x000000010eca164b DVTInvokeWithStrongOwnership + 71

	3   DTDeviceKitBase                     0x000000012aae3f82 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440

	4   IDEiOSSupportCore                   0x000000012a954a10 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
	5   DVTFoundation                       0x000000010edd017e __DVT_CALLING_CLIENT_BLOCK__ + 7
	6   DVTFoundation                       0x000000010edd1da0 __DVTDispatchAsync_block_invoke + 1191
	7   libdispatch.dylib                   0x00007fff718076c4 _dispatch_call_block_and_release + 12
	8   libdispatch.dylib                   0x00007fff71808658 _dispatch_client_callout + 8
	9   libdispatch.dylib                   0x00007fff7180dc44 _dispatch_lane_serial_drain + 597
	10  libdispatch.dylib                   0x00007fff7180e5d6 _dispatch_lane_invoke + 363
	11  libdispatch.dylib                   0x00007fff71817c09 _dispatch_workloop_worker_thread + 596
	12  libsystem_pthread.dylib             0x00007fff71a66a3d _pthread_wqthread + 290
	13  libsystem_pthread.dylib             0x00007fff71a65b77 start_wqthread + 15
);
}
--

System Information
macOS Version 10.15.7 (Build 19H2)
Xcode 12.4 (17801) (Build 12D4e)
Timestamp: 2021-11-22T13:05:39+02:00

I'm testing on a iPhone 7 running iOS 15.1 from a MacBook Pro running macOS Catalina. Could the problem be the os compatibilities?

NOTE: I can't update my MacBook OS because it's not compatible with newer versions.

Answered by Claude31 in 695735022

The code signature version is no longer supported.

You have apparently a signature error:

Are you trying to load the app from Xcode by running on your device ?

Check in the project Targets > Signing & Capabilities

Accepted Answer

The code signature version is no longer supported.

You have apparently a signature error:

Are you trying to load the app from Xcode by running on your device ?

Check in the project Targets > Signing & Capabilities

Can't run Xcode project on iPhone
 
 
Q