Xcode 12 (17219) : Unable to install apps on devices

Hi,
We ran our projects on Xcode 12. In the simulator they work fine. On the other hand if we try to install them on the Xcode device displays a popup "Unable to install"
If I click on the button "Details" it display a window "Issue" with :

Details

Code Block
Unable to install "<my application>"
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           0x000000012563b93f DTDKCreateNSErrorFromAMDErrorCode + 220
1  DTDeviceKitBase           0x000000012567a124 90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2  DVTFoundation            0x0000000109357b53 DVTInvokeWithStrongOwnership + 71
3  DTDeviceKitBase           0x0000000125679e65 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
4  IDEiOSSupportCore          0x00000001254ead28 118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
5  DVTFoundation            0x00000001094862ba DVT_CALLING_CLIENT_BLOCK + 7
6  DVTFoundation            0x0000000109487edc __DVTDispatchAsync_block_invoke + 1191
7  libdispatch.dylib          0x00007fff6b5526c4 _dispatch_call_block_and_release + 12
8  libdispatch.dylib          0x00007fff6b553658 _dispatch_client_callout + 8
9  libdispatch.dylib          0x00007fff6b558c44 _dispatch_lane_serial_drain + 597
10 libdispatch.dylib          0x00007fff6b5595d6 _dispatch_lane_invoke + 363
11 libdispatch.dylib          0x00007fff6b562c09 _dispatch_workloop_worker_thread + 596
12 libsystem_pthread.dylib       0x00007fff6b7ada3d _pthread_wqthread + 290
13 libsystem_pthread.dylib       0x00007fff6b7acb77 start_wqthread + 15
);
}
--
System Information
macOS Version 10.15.6 (Build 19G2021)
Xcode 12.0 (17219)

Same here, no solution yet. :(
You should try the following tutorial on PSPDFKit's blog: "Library Not Found issue When Running on an iOS Device Using Swift Package Manager". This solution worked for me.
I was able to sort this out using @peterkrassayautsoft solution. Thanks

Just search library-not-found-swiftpm on Google.

Found the solution. Apparently this is a known (SR-13343) in Xcode 12. It has to do with "SwiftPM binaryTarget dependency and code signing", where Xcode fails to sign the frameworks that are provided by SwiftPM.

See this link: https://forums.swift.org/t/swiftpm-binarytarget-dependency-and-code-signing/38953

If you read thru you will find a link to the work around, by adding a script to the build phase of the target:

Work Around Link: pspdfkit.com/guides/ios/current/knowledge-base/library-not-found-swiftpm/

I just added the script to my app, everything is now good!

Xcode 12 (17219) : Unable to install apps on devices
 
 
Q