ios - CodeSign 错误 : entitlements are required for product type 'Static Library' in SDK 'Simulator - iOS 8.4' . 您的 Xcode 安装可能已损坏

标签 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 测试时,它运行得很好

如果有任何帮助,我将不胜感激

最佳答案

也许和这个一样。

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

希望标记为正确的答案能对您有所帮助。

关于ios - CodeSign 错误 : entitlements are required for product type 'Static Library' in SDK 'Simulator - iOS 8.4' . 您的 Xcode 安装可能已损坏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31588853/

相关文章:

iphone - 表格 View 中的事件指示器

ios - return语句永远不会被执行警告

ios - 无法在 Mavericks 下使用我自己的 kestore 和 xcodebuild

linux - 是否可以在 Linux 上使用 xcodebuild?

xcode - 如何运行/安装xcodebuild?

ios - UISwitch:使触摸区域大于默认触摸区域

ios - 如何在 swift 中初始化一个空的 NSMutableAttributedString?

ios - Autolayout center X constraints flips in RTL in iOS 9

ios - xcode 自动调整 xib 的大小在 iphone 6s plus 上不合适

c++ - Xcode 错误编译 C++ 预期成员名称或声明说明符后的 ';'