Build success => can install to sumulator => but can't install to physical device

It's so weird with xcode 12. The project was succeed to build and run install simulator as well. But when try to install into physical device the error appeared.

Details

Unable to install "AppName"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
--
No code signature found.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
User Info: {
    DVTRadarComponentKey = 261622;
    MobileDeviceErrorCode = "(0xE800801C)";
    "com.apple.dtdevicekit.stacktrace" = (
	0   DTDeviceKitBase                     0x000000012a667c8f DTDKCreateNSErrorFromAMDErrorCode + 220
	1   DTDeviceKitBase                     0x000000012a6a6241 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
	2   DVTFoundation                       0x000000010ebb564b DVTInvokeWithStrongOwnership + 71
	3   DTDeviceKitBase                     0x000000012a6a5f82 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
	4   IDEiOSSupportCore                   0x000000012a516a10 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
	5   DVTFoundation                       0x000000010ece417e __DVT_CALLING_CLIENT_BLOCK__ + 7
	6   DVTFoundation                       0x000000010ece5da0 __DVTDispatchAsync_block_invoke + 1191
	7   libdispatch.dylib                   0x00007fff6efb56c4 _dispatch_call_block_and_release + 12
	8   libdispatch.dylib                   0x00007fff6efb6658 _dispatch_client_callout + 8
	9   libdispatch.dylib                   0x00007fff6efbbc44 _dispatch_lane_serial_drain + 597
	10  libdispatch.dylib                   0x00007fff6efbc5d6 _dispatch_lane_invoke + 363
	11  libdispatch.dylib                   0x00007fff6efc5c09 _dispatch_workloop_worker_thread + 596
	12  libsystem_pthread.dylib             0x00007fff6f214a3d _pthread_wqthread + 290
	13  libsystem_pthread.dylib             0x00007fff6f213b77 start_wqthread + 15
);
}
--


System Information

macOS Version 10.15.7 (Build 19H2)
Xcode 12.4 (17801) (Build 12D4e)
Timestamp: 2021-05-29T16:38:51+07:00

Does anyone face this issue before?.

Have you check (in Xcode) the signature of the app ?

Select the App in the file browser on the left.

Then signing and capabilities. What do you get there ?

Did you choose automatically sign ?

You should also check that bundle identifier is the same as in info.plist. And do an option-clean build folder.

See the discussion here https://developer.apple.com/forums/thread/126326?page=2:

…the problem had to do with bundle identifier. I had manually edited the entry in Info.plist but the entry in Signing & Capabilities showed something else. 

I changed in Signing & Capabilities and Info.Plist updated to a variable $(PRODUCT_BUNDLE_IDENTIFIER). I then had to clean the build, remove any previous apps installed and rebuild.

`

Build success => can install to sumulator => but can't install to physical device
 
 
Q