Codesign 为 openFrameworks 编译失败

Codesign Failed Compiling for openFrameworks

我在编译 openFrameworks (C++) 程序时不断遇到代码签名失败的问题。

我发现很多人都有类似的问题,但解决方案对我不起作用。这是我所做的,由其他论坛条目告知:

我几年前有一个开发者帐户,我想知道这是否以某种方式干扰了这个过程。我试图在 Apple Developer 网站上访问我的证书,但我无权访问这部分服务,因为我的会员资格已过期。

我尝试的任何 openFrameworks 示例以及新的空白草图都会出现此错误。

完整的错误信息:

CodeSign bin/mySketchDebug.app
    cd /Users/myusername/Documents/of_v0.10.1_osx_release/apps/myApps/mySketch
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

Signing Identity:     "-"

    /usr/bin/codesign --force --sign - --entitlements /Users/myusername/Library/Developer/Xcode/DerivedData/mySketch-etqpupvbyiamwodjeeyxogbqszyj/Build/Intermediates.noindex/mySketch.build/Debug/mySketch.build/mySketchDebug.app.xcent --timestamp=none /Users/myusername/Documents/of_v0.10.1_osx_release/apps/myApps/mySketch/bin/mySketchDebug.app

/Users/myusername/Documents/of_v0.10.1_osx_release/apps/myApps/mySketch/bin/mySketchDebug.app: code object is not signed at all
In subcomponent: /Users/myusername/Documents/of_v0.10.1_osx_release/apps/myApps/mySketch/bin/mySketchDebug.app/Contents/Frameworks/libfmodex.dylib
Command /usr/bin/codesign failed with exit code 1

这是 openFrameworks <= 0.10.1 和 Xcode 11+ 的已知问题。这是由于未签名的 libmodex 库。这在 oF 的夜间版本和未来版本中得到修复。请参阅以下帖子以供参考:

https://forum.openframeworks.cc/t/cant-build-getting-build-failed-with-any-example-code-sign-error/33668/2

https://forum.openframeworks.cc/t/cant-run-examples-in-xcode-signing-issue-with-libfmodex-dylib/33463/4