Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In my search, I found the clang documentation on this; <a href="http://clang.llvm.org/docs/LanguageExtensions.html#messages-on-deprecated-and-unavailable-attributes" rel="nofollow">Clang Language Extensions</a></p> <p>My Xcode version is 4.6.2, I tried LLVM-gcc without ARC to ensure that the gcc compiler still worked with the extensions.</p> <p>My compiler for C/C++/Objective-C options are ; LLVM GCC 4.2 and Apple LLVM compiler.</p> <p>Both these attributes are in the .h header file. Both LLVM GCC and APPLE LLVM take these two styles</p> <pre><code>-(void)oldMethod __attribute((deprecated())); //or -(void)oldMethod2 DEPRECATED_ATTRIBUTE; </code></pre> <p>LLVM GCC complained about the following method format, where as Apple LLVM worked properly (This answers your question actually. your compiler is using LLVM GCC or something older)</p> <pre><code>-(void)oldMethod __attribute((deprecated("Don't use Old Method"))); </code></pre> <p>Long story short, be sure to keep a backup before you go messing with these build settings and changes.</p> <ol> <li><p>Check that the proper Xcode is running (4.6.2 is latest), I ended up with a clutter of different version and had to do clean up.</p></li> <li><p>Check which compiler versions are available in the project settings under "Build Options". (I indicated that answer above)</p></li> <li><p>For older projects, you may want to check on refactoring with ARC and Convert to modern objective-c. Just be sure to keep a backup, on larger projects it can be a hassle. (Edit->Refactor->Modern Objective-C) Videos; WWDC 2011 Refactoring with Automatic Reference Counting WWDC 2012 Modern Objective-C Videos <a href="https://developer.apple.com/videos/wwdc/2012/" rel="nofollow">https://developer.apple.com/videos/wwdc/2012/</a></p> <p>Note: Modern Objective-C refactoring will change to the Apple-LLVM compiler. Along with other changes.</p></li> </ol> <p>If this answer gets at the core of your question, help me out by up-voting! TIA!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload