自从(违背我的意愿)更新到 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
Run Code Online (Sandbox Code Playgroud)
我已经尝试清理我的项目,重置我的登录钥匙串,并重新启动我的电脑,但我仍然收到这个错误......怎么办?
我正在使用 OpenFrameworks 构建 OSX 应用程序,而不是 iOS 应用程序。当我在 Xcode 10.3 中构建它时,它工作正常,没有错误。
这个问题的独特之处在于,这是针对 Xcode 11,而不是 10,并且其他问题的答案都不适合我!
小智 10
我已经通过以下方式解决了同样的问题:
我真的不知道使用此功能是否有任何缺点,但是我的应用程序可以在 macOS 和 iOS 上编译并正常运行。
今天早上升级到 XCode-11 后,我遇到了同样的错误。在模拟器中构建,但不在设备上构建。
这个线程帮助解决了我在下面总结的问题。