I followed @UdaySingh's comment and it worked, I’m not sure why he didn’t post the answer, but I understand that there are people who sometimes need step-by-step steps, and the visual guide really helps. Here is a visual version of his comment.
In the project navigator, select the blue project icon.

Choose Build Settings

In the search field, enter Build Active Architecture and make sure Debug set to Yes

In the same search field, now enter Optimization Level . Change Debug and Release to None

Following @matts comments below also do the cleaning afterwards.
it
source share