Code signing is required for product type

I hade a code sign issue in my xcode & the below article helped me overcoming it: