Running app from console gets CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'

Running app from console gets CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'

我正在尝试从控制台 运行 一个 iOS 应用程序执行以下命令:

xctool/xctool.sh -workspace Supermaxi.xcworkspace -scheme Supermaxi build

我收到了这样的回复

[信息] 正在加载方案 'Supermaxi' 的设置 ...(11036 毫秒)

=== BUILD ===

  xcodebuild build Supermaxi
    Pods / Pods-FunctionalTests-KIF (Debug)
      ✓ Check dependencies (379 ms)
      0 errored, 0 warning (442 ms)

    Pods / Pods-uservoice-iphone-sdk-UserVoice (Debug)
      0 errored, 0 warning (159 ms)

    ✓ Check dependencies (144 ms)
    Pods / Pods-uservoice-iphone-sdk (Debug)
      ✓ Check dependencies (468 ms)
      0 errored, 0 warning (850 ms)

    Pods / Pods-FunctionalTests (Debug)
      0 errored, 0 warning (186 ms)

    ✓ Check dependencies (184 ms)
    Pods / Pods (Debug)
      ✓ Check dependencies (18 ms)
      0 errored, 0 warning (20 ms)

    Supermaxi / Supermaxi (Debug)
      ✗ Check dependencies (0 ms)

和以下错误:

Check dependencies
Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “NV6RLEM7VP” were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
      2 errored, 0 warning (0 ms)



Failures:

  0) Check dependencies
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Check dependencies
Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “NV6RLEM7VP” were found.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

** BUILD FAILED ** (3095 ms)

我该怎么做才能解决这个问题?

在 Whosebug 阅读了几个 post 并在 Github 阅读了几个 post 之后,我发现 this one 最后找到了解决方案。因此,我的解决方案是:

xctool/xctool.sh -workspace Supermaxi.xcworkspace -scheme Supermaxi build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

对我有用。