It should be a lot of different problem. One of them if the "Build configuration" is Release then there should go -Onone error. You should change Release to Debug in the scheme.