I have created iphone project. I want to test it on my iphone. I don't have an account on itunesconnect so I'm unable to load a certificate to sign my code. I've created my own certificate (Keychain Access->Certificate Assistant ->Create Certificate). But I could not sign my project with it. xCode can not see my self-signed certificate.
How can I sign my code to test it on my device without itunesconnect account?
A certificate is not a provisioning profile. You need a provisioning profile for the device in question to load onto it. For this, you need to be a registered iOS developer, which is $99 per year.