ios - objective - xcode tutorial
Code signing is required for product type Unit Test Bundle in SDK iOS 8.0 (8)
Code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 8.0'
My app target is code signing just fine - but my test target is not. I bought a new computer, created a new development certificate from the computer, updated the provisioning profile accordingly, installed both, but can't get past this code signing error.
Any way of wiping all certs/profiles locally so I can reinstall?
Probably some kind of bug.
Also, if you set your build target device, the problem will go away when you testing and debugging. The code signed is only need when you trying to deploy your app to an actually physical device
I changed mine from "myIphone" to simulator iPhone 6 Plus, and it solves the problem while I'm developing the app.
Hi I face the same problem today. After reading "Spentak"'s answer i tried to make code signing of my target to set to iOSDeveloper, and still did not work. But after i changing "Provisioning Profile" to "Automatic", the project got built and ran without any code signing errors.
I fixed the issue (temporarily) by going to Edit Scheme, then in the Build section, removing my unit test target from being invoked in "Run".
I solve the problem by changing the 'Provisioning Profile' in the same section ('Code Signing') from Automatic to 'MyProvisioningProfile name'
If nothing works from above solutions follow these steps
From Targets select appnameTests Under "Info"
Bundle Identifier: com.ProjectName.$(PRODUCT_NAME:rfc1034identifier)
Bundle name: $(PRODUCT_NAME)
Bundle name: appname
Compile & execute
The other advice here didn't help me, but I fixed this error by going to
Product > Scheme > Edit Scheme. Then I clicked
Build on the left hand side and deselected any checkboxes next to
AppNameTests. I'm using XCode 6.3
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.
1) Change target to your test target (AppnameTests)
2) Make sure "Code Signing Identity" is NOT "Don't Code Sign". Pick a profile to sign with
That is all I had to change to get it to work.