consigo muchas advertencias de este tipo:'__strong' solo se aplica a object-c object o block pointer types; Escribe aquí es XXX" advertencia
'__strong' sólo se aplica a objetos Objective-C o bloquear los tipos de puntero; escriba aquí es ...
las advertencias están apuntando a las cabeceras marco NSNotification por ejemplo, NSURL, etc .. NSIndexset
¿qué son y cómo puedo repararlo
nota 1:.? i utilizar ARC
nota 2: la aplicación parece funcionar
editar 1: las advertencias parecen provenir de mi archivo pch. que es:
//
// 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
editar 2: ejemplo de advertencia: de advertencia en NSString.h punto a:
/* 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)
... pero no nos muestran el código que hace que la advertencia? –
es un montón de código, y como he dicho, la advertencia no se trata de ningún código que haya escrito. – amit
A menudo las advertencias están "emparejadas": una en su código, una en el encabezado para que sea más fácil encontrar el tipo coincidente. Muéstranos la línea de tu código que activa la advertencia. –