我可以很好地从xcode构建,但不能使用xcodebuild从命令行构建。我正在尝试设置vim和一些像clang_complete这样的插件。我需要命令行构建的输出放入.clang_complete文件等
这是我的错误
$ xcodebuild -project Proto.xcodeproj -alltargets
=== BUILD NATIVE TARGET Proto OF PROJECT Proto WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
Code Sign error: The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair in your keychains
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
我已尝试过so question中的建议。建议也失败了。
$ xcodebuild -configuration CODE_SIGN_IDENTITY='iPhone Developer: Company Inc'
--- xcodebuild: WARNING: Configuration CODE_SIGN_IDENTITY=iPhone Developer: Company Inc is not in the project. Building default configuration.
=== BUILD NATIVE TARGET Proto OF PROJECT Proto WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
Code Sign error: The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair in your keychains
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
有没有人对我如何纠正这个问题有任何建议。我没有开发人员许可证在设备上安装我的应用程序,只是注册为会员。这有什么不同吗?似乎它不会,因为我可以从xcode构建。
另外,作为次要的最后手段类型问题,无论如何都要提取编译器命令以放入.clang_complete文件,即使我无法从命令行构建?在objective vimmer post
中解释了执行此操作的原因提前感谢您提供任何帮助