I am currently struggling with code signing the Qt 5 frameworks, which gives me a strange error:
[me@box ~/qt-src-5.9.3/qtbase/lib]$ codesign -s '-' --deep --force --verbose=3 QtCore.framework
QtCore.framework: unsealed contents present in the root directory of an embedded framework
[me@box ~/qt-src-5.9.3/qtbase/lib]$
Unfortunately codesign is not very verbose on which file(s) it is bothering with. This is the directory structure:
[me@box ~/qt-src-5.9.3/qtbase/lib]$ ls -la QtCore.framework/
total 32
drwxr-xr-x 7 me staff 238 Dec 14 23:29 .
drwxr-xr-x@ 102 me staff 3468 Dec 14 22:42 ..
lrwxr-xr-x 1 me staff 24 Dec 14 01:47 Headers -> Versions/Current/Headers
lrwxr-xr-x 1 me staff 23 Dec 14 01:49 QtCore -> Versions/Current/QtCore
lrwxr-xr-x 1 me staff 29 Dec 14 23:29 QtCore_debug -> Versions/Current/QtCore_debug
lrwxr-xr-x 1 me staff 26 Dec 14 01:47 Resources -> Versions/Current/Resources
drwxr-xr-x 5 me staff 170 Dec 14 22:53 Versions
[me@box ~/qt-src-5.9.3/qtbase/lib]$
I don't see any file in the root directory, only symlinks. And I also don't see any "embedded" framework there.
[me@box ~/qt-src-5.9.3/qtbase/lib]$ ls -la QtCore.framework/Versions/Current/Resources/
total 24
drwxr-xr-x 5 me staff 170 Dec 14 23:08 .
drwxr-xr-x 6 me staff 204 Dec 14 01:49 ..
-rw-r--r-- 1 me staff 708 Dec 14 01:47 Info.plist
-rw-r--r-- 1 me staff 1490 Dec 14 01:47 QtCore.prl
-rw-r--r-- 1 me staff 1508 Dec 14 01:47 QtCore_debug.prl
[me@box ~/qt-src-5.9.3/qtbase/lib]$ ls -la QtCore.framework/Versions/
total 16
drwxr-xr-x 5 me staff 170 Dec 14 22:53 .
drwxr-xr-x 7 me staff 238 Dec 14 23:29 ..
drwxr-xr-x 6 me staff 204 Dec 14 01:49 5
lrwxr-xr-x 1 me staff 1 Dec 14 22:53 A -> 5
lrwxr-xr-x 1 me staff 1 Dec 14 22:53 Current -> 5
[me@box ~/qt-src-5.9.3/qtbase/lib]$ which codesign
/usr/bin/codesign
[me@box ~/qt-src-5.9.3/qtbase/lib]$ what /usr/bin/codesign
/usr/bin/codesign
PROGRAM:codesign PROJECT:codesign-12.70.1
[me@box ~/qt-src-5.9.3/qtbase/lib]$
Does anybody have an idea what could be wrong here?