Use $(TARGET_NAME) consistently in the Xcode project file. Don't unset "Treat warnings as errors".