CodeSign Error: Product Type "Static Library" requires use rights in SDK "Simulator - iOS 8.4". Your Xcode installation may be corrupted

I couldn't figure it out.

In xCode, I have a script run phase that runs "xcodebuild" to test a project on a simulator. When I run the following line in the script:

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

      

The following message failed:

=== 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)

      

I tried various suggestions and didn't work:

  • I tried running "xcodebuild install" and "xcodebuild" and it fails with the same messsage

  • Following some suggestions in other questions asked here, I tried reinstalling xCode, but it didn't help either

FYI: When I run the same code in the terminal directly in runs, also when I run xcodebuild test

with the actual device at the destination, it works just fine

I would really appreciate any help

+3


source to share


1 answer


Perhaps he is the same as this one.

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



Hope the answer is marked as correct which may help you.

0


source







All Articles