Appendix D. Known issues#
MacOS known issues#
This section describes problems that may occur after building and executing one of the examples from the root directory and provides possible solutions for their solving.
For example, a problem may occur while building the following example:
./build/example_extraction/example_extraction
Possible problem:
zsh: killed ./build/example_extraction/example_extraction
Solution: sign your binary file by your apple development profile or using test.xcent entitlements:
$ codesign -v --force --sign - --entitlements test.xcent build/example_extraction/example_extraction
Possible problem:
$ build/example_extraction/example_extraction: replacing existing signature
build/example_extraction/example_extraction: errSecInternalComponent
Solution: In this case please refer to https://stackoverflow.com/questions/24023639/xcode-command-usr-bin-codesign-failed-with-exit-code-1-errsecinternalcomponen
$ security unlock-keychain login.keychain
It may be also required to re-sign all libraries:
$ codesign -v --force --sign - --entitlements test.xcent --timestamp=none lib/clang/x64/lib*
Possible problem:
$ lib/clang/x64/libFaceEngineSDK.dylib: replacing existing signature
$ lib/clang/x64/libFaceEngineSDK.dylib: the codesign_allocate helper tool cannot be found or used
Solution:
$ cp lib/clang/x64/libFaceEngineSDK.dylib lib/clang/x64/libFaceEngineSDK.dylib1
$ codesign -v --force --sign - --entitlements test.xcent lib/clang/x64/libFaceEngineSDK.dylib1
$ mv lib/clang/x64/libFaceEngineSDK.dylib1 lib/clang/x64/libFaceEngineSDK.dylib
On success, the following response will be returned:
$ codesign -v --force --sign - --entitlements test.xcent lib/clang/x64/lib*
Result:
$ lib/clang/x64/libBestShotMobile.dylib: replacing existing signature
$ lib/clang/x64/libBestShotMobile.dylib: signed Mach-O thin (arm64) [libBestShotMobile]
$ lib/clang/x64/libFaceEngineSDK.dylib: replacing existing signature
$ lib/clang/x64/libFaceEngineSDK.dylib: signed Mach-O thin (arm64) [libFaceEngineSDK]
$ lib/clang/x64/libLivenessEngineSDK.dylib: replacing existing signature
$ lib/clang/x64/libLivenessEngineSDK.dylib: signed Mach-O thin (arm64) [libLivenessEngineSDK]
$ lib/clang/x64/libTrackEngineSDK.dylib: replacing existing signature
$ lib/clang/x64/libTrackEngineSDK.dylib: signed Mach-O thin (arm64) [libTrackEngineSDK]
$ lib/clang/x64/libflower.dylib: replacing existing signature
$ lib/clan$ g/x64/libflower.dylib: signed Mach-O thin (arm64) [libflower]
$ lib/clang/x64/libtbb.dylib: replacing existing signature
$ lib/clang/x64/libtbb.dylib: signed Mach-O thin (arm64) [libtbb]
Possible content of test.xcent
:
<?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.get-task-allow</key>
<true/>
</dict>
</plist>