Q:

Xcode: App installation failed No code signature found

I want run app on real device ( iphone 6 or 8 )
But i get this error :

App installation failed No code signature found.

I try all below solutions but not work for me:
iOS app testing. App installation failed. No code signature found
My xcode version is 9.2
I'm tired :(

A:

I go to project > build setting and set signing > code signing identity to iOS developer
It work fine

