CodeSign错误:产品类型'静态库'需要权利。在SDK'模拟器 - iOS 8.4'。您的Xcode安装可能已损坏

时间:2015-07-23 13:29:46

标签: ios xcode xcodebuild

我无法解决这个问题

在xCode中,我有一个运行脚本构建阶段,它运行" xcodebuild"在模拟器上测试项目。 当我在脚本中运行以下行时:

xcodebuild -workspace Augury.xcworkspace -scheme "Augury - Production" -destination "platform=iOS Simulator,name=iPhone 5s" test

它失败并显示以下消息:

=== BUILD TARGET Pods-FMDB OF PROJECT Pods WITH CONFIGURATION Debug ===
Check dependencies
CodeSign error: entitlements are required for product type 'Static Library' in SDK 'Simulator - iOS 8.4'. Your Xcode installation may be damaged.
=== BUILD TARGET Pods-Raven OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies
CodeSign error: entitlements are required for product type 'Static Library' in SDK 'Simulator - iOS 8.4'. Your Xcode installation may be damaged.
=== BUILD TARGET Pods-CPAnimationSequence OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies
CodeSign error: entitlements are required for product type 'Static Library' in SDK 'Simulator - iOS 8.4'. Your Xcode installation may be damaged.
=== BUILD TARGET Pods-MBProgressHUD OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies
CodeSign error: entitlements are required for product type 'Static Library' in SDK 'Simulator - iOS 8.4'. Your Xcode installation may be damaged.
Testing failed:
CodeSign error: entitlements are required for product type 'Static Library' in SDK 'Simulator - iOS 8.4'. Your Xcode installation may be damaged.

** TEST FAILED **
The following build commands failed:

Check dependencies
Check dependencies
Check dependencies
Check dependencies
(4 failures)

我尝试了各种建议而且没有工作:

  • 我尝试过运行" xcodebuild install" &安培; " xcodebuild build"而它失败了同样的消息

  • 在此处提出的其他问题中提出了一些建议后,我尝试重新安装xCode,但这并没有帮助

仅供参考:当我在终端中直接运行相同的代码时运行得很好, 当我在目的地中使用实际设备运行xcodebuild test时,它运行得很好

我真的很感激任何帮助

1 个答案:

答案 0 :(得分:0)

也许就像这个一样。

Code signing is required for product type Unit Test Bundle in SDK iOS 8.0

希望标记为正确的答案可以帮到你。