我无法解决这个问题
在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
时,它运行得很好
我真的很感激任何帮助
答案 0 :(得分:0)
也许就像这个一样。
Code signing is required for product type Unit Test Bundle in SDK iOS 8.0
希望标记为正确的答案可以帮到你。