Code Signing Is Required for Product Type Unit Test Bundle in Sdk iOS 8.0

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

The problem is the project is under source control and every time I pull the .xcodeproj is updated. And since my provisioning profile is different than the one in source control, the Unit Test target automatically switches to "Do not code sign". So I simply have to set the profile there after each git pull.

Apparently if deploying to a device, if there is a unit test target, it must be code signed.

Steps:

1) Change target to your test target (AppnameTests)

Sample Image

2) Make sure "Code Signing Identity" is NOT "Don't Code Sign". Pick a profile to sign with

Sample Image

That is all I had to change to get it to work.

Xcode error: Code signing is required for product type 'Application' in SDK 'iOS 10.0'

With Xcode-8.1 & iOS-10.1

  1. Add your Apple ID in Xcode Preferences > Accounts > Add Apple ID:

Step 1


  1. Enable signing to Automatically && Select Team that you have created before:

Step 2


  1. Change the Bundle Identifier:

Step 3


  1. Code Signing to iOS Developer:

Step 4


  1. Provision profile to Automatic:

Step 5

You can now run your project on a device!

iOS AppUITests - Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.2'

To run uitest on real device, different profile is required to configure as uitest target runs on different process as different app.

For simulator, developer provisioning profile is ok. But if you want to run ui tests on real devices, you need separate developer provisioning profile.



Related Topics



Leave a reply



Submit