gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:35:44 26 4
gpt4 key购买 nike

我想不通

在 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com