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)

我能做些什么来解决这个问题?

4

1 回答 1

1

在阅读了 stackoverflow 上的几篇文章和 Github 上的几篇文章后,我找到了这篇文章,最后我找到了解决方案。因此,我的解决方案是:

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

它对我有用。

于 2015-06-15T17:04:36.907 回答