In my case I checked Info tab where you can reach from Edit scheme and I found my scheme was set as Release build with Debug executable.
Edit scheme
I modified from Release to Debug and my application was finally able to build.
Just try it.