What does this LLVM 1.5 warning mean? “protocol qualifiers without 'id' is archaic”

前端 未结 1 1885
执念已碎
执念已碎 2021-01-25 19:47

I\'ve just tried compiling an iOS project using the the LLVM 1.5 compiler (included in XCode 3.2.3), and I got a lot of new warnings, including several like this:



        
相关标签:
1条回答
  • 2021-01-25 20:31

    Archaic: extremely old or extremely old-fashioned.

    The warning means a protocol qualifier (i.e. <NSFetchedResultsControllerDelegate>) without an id is deprecated. The delegate parameter's type should look like:

    - (id)initWithContext:(NSManagedObjectContext *)context
              coordinator:(NSPersistentStoreCoordinator *)coordinator
                 delegate:(id<NSFetchedResultsControllerDelegate>)delegate;
           //              ^^
    
    0 讨论(0)
提交回复
热议问题