Getting
Code signing is required for product type \'Unit Test Bundle\' in SDK \'iOS 8.0\'
My app target is code signing just
I fixed it by manually selecting a provisioning profile in the build settings for the test target.
Test target settings -> Build settings -> Code signing -> Code sign identity. Previously, it was set to "Don't code sign".