Search code examples
xcodeios4compiler-errorscompiler-warningsdeprecated

Is there compile warnings or errors for deprecated code in XCode for iOS4 projects by default?


I took over an iPhone project recently that was developed prior iOS4. I'm wondering if XCode would prompt warnings or errors on compile. It currently succeeds with "No issues" when built so is it safe to assert that it contains no deprecated code? Or is there a setting to be set on XCode to warn on compile for deprecated code?


Solution

  • There is a setting in Xcode to hide deprecated warnings: Go to Targets -> Your Target -> Get Info -> Build -> Warn About Deprecated Functions. You can check if that setting is on (It's on by default) to make sure you're getting the "deprecated" warnings you want.