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

前端 未结 11 1813
甜味超标
甜味超标 2020-12-02 07:46

Getting

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

My app target is code signing just

11条回答
  •  甜味超标
    2020-12-02 07:50

    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)

    enter image description here

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

    enter image description here

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

提交回复
热议问题