You will get this error if the Unit Test Target sets
code signing
to "Do not code sign" (Like
Image 01). This could happen if your
“Provisional Profile” differs with the source control’s (ex.
Bitbucket). You can solve this error by
following some easy steps, which are given below.Image 01 Code signing Error |
Step
# 1
First
of all, change your project’s target to project’s test target from Navigator
area of XCode. (Image 02)
Image 02 Changing project's target |
Step
# 2
Then
select “Building Settings” from top bar and find a settings option named
“Signing” (Image 03). After that you can
notice "Code Signing Identity" sets to “Don't Code Sign”.
Image 03 Searching the "Signing" in "Building Settings" |
Step
# 3
Change this “Don't Code Sign” to any of your
profile. In Image 04 you can see I have selected “iOS Developer”.
Image 04 Change the code signing profile |
Build
your project. It should be error free now. But if you are still getting another
error called “Siging for “project_nameTests” requires a development team.
Select a development team in the project editor.” That means your project’s Test target needs
to be assigned to a developer team.
Like Image 05, first select “General”. In that
screen you can see the previous mentioned error. Just select the developer team
from the list. Again build your project successfully.
Image 05 Changing the team from General |
No comments:
Post a Comment