自从(不愿意)升级到Xcode 11以来,我在尝试构建我的项目时遇到了这个错误:
CodeSign /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/bin/pplight-ofx-098Debug.app (in target 'pplight-ofx-098' from project 'pplight-ofx-098')
cd /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "-"
/usr/bin/codesign --force --sign - --entitlements /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/build/pplight-ofx-098.build/Debug/pplight-ofx-098.build/pplight-ofx-098Debug.app.xcent --timestamp=none /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/bin/pplight-ofx-098Debug.app
/Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/bin/pplight-ofx-098Debug.app: code object is not signed at all
In subcomponent: /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/bin/pplight-ofx-098Debug.app/Contents/Frameworks/GLUT.framework
Command CodeSign failed with a nonzero exit code
我已经尝试了清理项目、重置登录钥匙串以及重新启动电脑,但我仍然收到这个错误...该怎么办?
我正在使用OpenFrameworks构建一个OSX应用程序,而不是iOS应用程序。当我在Xcode 10.3中构建时,没有错误。
这个问题的独特之处在于它是针对Xcode 11而不是10的,而且那个问题的任何答案都没有对我起作用!
codesign
在签署GLUT.framework
时出现了问题。我认为可以通过使用--deep
标志来解决这个问题。编辑你的构建设置并将--deep
添加到其他CodeSign标志(或类似的内容)中。 - trojanfoe