After upgrading to XCode12, I was suffering from the problem that even if I could build and start the simulator, it would fail by spitting out the following code when starting the actual machine.
No code signature found.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
……
It occurs when the external library SwiftyTesseract is installed from SwiftPackageManager, and when I investigate it, it seems that the same phenomenon occurs in the Firebase library and so on.
Apparently, even if the external library installed is static, it is transferred to the actual machine, and the signature of the binary is checked and it seems that it fails.
Basically it seems to be a bug of XCode 12, but it can be temporarily dealt with by adding the following Run Script to Edit Schema → Build → Post-actions as shown in the above reference URL.
__ Please note that the Frameworks to be removed should match the installed library __
/bin/sh
# Type a script or drag a script file from your workspace to insert its path.
rm -rf "${TARGET_BUILD_DIR}/${TARGET_NAME}.app/Frameworks/libtesseract.framework"
rm -rf "${TARGET_BUILD_DIR}/${TARGET_NAME}.app/Frameworks/SwiftyTesseract.framework"
For reference, as a temporary measure until XCode 12 is fixed.