Debugging exception thrown in Objective-C and Xcode

前端 未结 5 845
梦毁少年i
梦毁少年i 2020-12-23 15:22

I am a long time Microsoft developer and I am new to iPhone development using Xcode. So, I am reading a book and going through examples trying to teach myself how to write

5条回答
  •  自闭症患者
    2020-12-23 16:18

    What you did is not a compile-time error, because the Objective-C runtime checks at runtime if an object can respond to the message you send to it.

    I recommend adding this build setting to your target or project:

    GCC_TREAT_WARNINGS_AS_ERRORS = YES
    

提交回复
热议问题