We codesign our runnable PC application with entitlements.plist as following
sudo codesign --force --timestamp --options=runtime --entitlements ./entitlements.plist -s "${cert}" full/path
then we run it, the application goes into killed rather than runs up .
The terminal shows as below:
zsh: killed ./XXXX.app/Contents/MacOS/XXXX
The crash report and entitlements.plist are attached. The Mac OS is 10.15.4 , with latest XCode from Apple AppStore.
From the report, it seems terminated due to EXC_CRASH (Code Signature Invalid) . So it just failed for the boot of app. Hope somebody gives us points to move forward.
entitlements.plist
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
</dict>
</plist>