从控制台运行应用程序会收到CodeSign错误:产品类型需要进行代码签名'应用程序'在SDK' iOS 8.1'

时间:2015-06-15 16:49:12

标签: xcode xctool

我正在尝试从控制台运行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)

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

1 个答案:

答案 0 :(得分:1)

在stackoverflow阅读了几篇帖子,在Github上发了几篇文章后,我找到了this one,最后我找到了解决方案。因此,我的解决方案是:

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

它对我有用。