'__ strong' применяется только к типам объектных или блочных указателей target-c; тип здесь - XXX "предупреждение

я получаю много предупреждений типа:

'__ strong' применяется только к типам объектных или блочных указателей; вот тип ...

предупреждения указывают на заголовки фреймворка, например NSNotification , NSURL, NSIndexset и т. Д.

что это такое и как я могу его исправить?

примечание 1: я использую ARC

примечание 2: кажется, что приложение работает

редактировать 1: кажется, что предупреждения происходят из моего файла pch. который:

//
// Prefix header for all source files of the 'myapp' target in the 'myapp' project
//

#import <Availability.h>

#ifndef __IPHONE_5_0
     #warning "This project uses features only available in iOS SDK 5.0 and later."
#endif

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
#endif

редактировать 2: пример предупреждения: предупреждение в NSString.h указывает на:

/* Methods to convert NSString to a NULL-terminated cString using the specified encoding.     Note, these are the "new" cString methods, and are not deprecated like the older cString     methods which do not take encoding arguments.
*/
- (__strong const char *)cStringUsingEncoding:(NSStringEncoding)encoding; //"Autoreleased"; NULL return if encoding conversion not possible; for performance reasons, lifetime of this should not be considered longer than the lifetime of the receiving string (if the receiver string is freed, this might go invalid then, before the end of the autorelease scope)
5
задан Brad Larson 28 February 2012 в 22:22
поделиться