error: invalid or corrupted code requirement(s)
To run HostApp, before I set the certificate.pri and tried to build ExampleTool and PrivilegedHelper, then this errors are appeared:

(Normally, SHA-1 has spaces but I wrote CERTSHA1 in a contiguous format like this: EEDF324B5E25EEDF324B5E25EEDF324B5E25)
So, I assigned CERT_OU to XXXXXXXXXX again and rebuilt ExampleTool and PrivilegedHelper. Then errors disappeared. Afterward, I assigned CERT_OU to real value (from certificate) to build HostApp. I think it is necessary for HostApp. It was built successfully. Then I run SMJobBlessUtil.py script and get this error:
sudo python SMJobBlessUtil.py check ../build-PrivilegedHelperExample-Desktop_Qt_5_9_1_clang_64bit-Debug/HostApp.app
../build-PrivilegedHelperExample-Desktop_Qt_5_9_1_clang_64bit-Debug/HostApp.app: app code signature invalid
I think the other issues which mentioned before is related with this. I couldn't solve it.
Edit: I checked my certificate with SMJobBless example and it worked. The certificate is valid.
And I wonder, there are commands which are hardcoded in .pro files:
plist.commands += /usr/libexec/PlistBuddy -c \'Set :SMPrivilegedExecutables:$${HELPER_IDENTIFIER} 'anchor apple generic and identifier \\\"$${HELPER_IDENTIFIER}\\\" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = $${CERT_OU})'\' $${INFO_PLIST_PATH};
Should we also change these lines?