产品类型'命令行工具'需要进行代码签名。在SDK' macOS 10.12'

时间:2017-01-18 11:02:43

标签: xcodebuild macos-sierra xcode8.2

使用Xcode 8.2从命令行构建时,这是一个错误吗?

我在尝试构建fbsimctl时看到了这一点:

brew tap facebook/fb
brew install fbsimctl --HEAD

==> Installing fbsimctl from facebook/fb
==> Cloning https://github.com/facebook/FBSimulatorControl.git
Updating /Users/lnatan/Library/Caches/Homebrew/fbsimctl--git
==> Checking out branch master
==> ./build.sh fbsimctl build /usr/local/Cellar/fbsimctl/HEAD-244a622
Last 15 lines from /Users/lnatan/Library/Logs/Homebrew/fbsimctl/01.build.sh:
cd /tmp/fbsimctl-20170118-36571-pwc8nx/fbsimctl
/usr/bin/touch -c /tmp/fbsimctl-20170118-36571-pwc8nx/build/Build/Products/Debug/FBSimulatorControlKit.framework

=== BUILD TARGET fbsimctl OF PROJECT fbsimctl WITH CONFIGURATION Debug ≡

Check dependencies
"fbsimctl" isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it.
Code signing is required for product type 'Command-line Tool' in SDK 'macOS 10.12'

** BUILD FAILED **

The following build commands failed:
Check dependencies
(1 failure)

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/facebook/homebrew-fb/issues

尝试手动构建而不是使用脚本,我遇到了类似的问题:

=== BUILD TARGET fbsimctl OF PROJECT fbsimctl WITH CONFIGURATION Release ===

Check dependencies
"fbsimctl" isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it.
Code signing is required for product type 'Command-line Tool' in SDK 'macOS 10.12'

** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)

有趣的是,从Xcode构建成功。

2 个答案:

答案 0 :(得分:0)

您需要使用env变量运行它以禁用代码签名

export CODE_SIGNING_REQUIRED=NO && brew install fbsimctl --HEAD

来自安装说明。

答案 1 :(得分:0)

这似乎已在最近的fbsimctl版本中得到解决。

相关问题