Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 9.2'

I want to test my application in iPhone 5s. and it have latest ios version. so, I have deleted old Xcode V 7.0.1 and install a new version v 7.2.

After installing v 7.2 I am getting below error.

CodeSign error: code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 9.2'

I have check this question code-signing-is-required-for-product-type-unit-test-bundle-in-sdk-ios-8-0 and try all the answers but still I am getting this problem.

I have proper set build target in general as well as info tab. even I am not getting code signin error to fix the issue. but still not able to run application in my testing device.

enter image description here

Code signing also set correctly.

enter image description here

Also deleted Test Project from my Application.

like image 893
Badal Shah Avatar asked Feb 11 '16 08:02

Badal Shah


3 Answers

I found solution for that work for me. in the left panel, go under projectNameTests then in signing choose any development team that has license in ios.

like image 170
Manspof Avatar answered Oct 23 '22 02:10

Manspof


Actually for every iOS app there will be two targets 1.app target 2.test target. Code signing is required for both targets.In our case,code signing is not set for test target , so click 'app_name'tests under TARGETS section and provide same code siging details as given for app target

like image 45
No_name_untilRecognised Avatar answered Oct 23 '22 01:10

No_name_untilRecognised


enter image description here

Change the target on left top to appNameTests and set signing section accordingly. Now signing error should go.

like image 1
Edison D'souza Avatar answered Oct 23 '22 01:10

Edison D'souza