Attualmente sto riscontrando questo errore nel mio progetto xcode oggi ... Non l'ho mai avuto prima. L'unico cambiamento che ho apportato dall'ultima build di successo è che ho importato il framework iAD (l'ho fatto stamattina prima che provassi a fare una nuova build, quindi non sono sicuro che abbia qualcosa a che fare con esso. dubbio però.) Tutti i problemi riguardano NSSet/NSArray/NSDictionary e sono tutti contenuti in UIIit e CIEmage di UIEvent e CoreImage. Se qualcuno ha qualche idea su cosa potrebbe succedere qui, apprezzerei l'input.xcode 7 Gli argomenti Type non possono essere applicati alla classe non parametrizzata
Modifica: ho dimenticato di menzionare gli errori specifici. Eccoli:
"Tipo argomenti non possono essere applicati a classe non-parametrica 'NSSet'",
"Tipo argomenti canot essere applicati a classe non-parametrica 'NSArray'",
"Tipo argomenti canot essere applicati a classe non-parametrica 'NSDictionary'"
Edit 2: non mi rendevo conto che l'App store aggiornati Xcode 6,4-7,0, quindi mi cha assegnato al titolo per riflettere la versione xcode corretta.
Ecco dove sta avvenendo in UIEvent.h (linee 50, 51, 52, 53, 56, 59):
- (nullable NSSet <UITouch *> *)allTouches;
- (nullable NSSet <UITouch *> *)touchesForWindow:(UIWindow *)window;
- (nullable NSSet <UITouch *> *)touchesForView:(UIView *)view;
- (nullable NSSet <UITouch *> *)touchesForGestureRecognizer: (UIGestureRecognizer *)gesture NS_AVAILABLE_IOS(3_2);
// An array of auxiliary UITouch’s for the touch events that did not get delivered for a given main touch. This also includes an auxiliary version of the main touch itself.
- (nullable NSArray <UITouch *> *)coalescedTouchesForTouch:(UITouch *)touch NS_AVAILABLE_IOS(9_0);
// An array of auxiliary UITouch’s for touch events that are predicted to occur for a given main touch. These predictions may not exactly match the real behavior of the touch as it moves, so they should be interpreted as an estimate.
Qui è dove sta avvenendo in UIResponder.h (righe 31-34):
// Generally, all responders which do custom touch handling should override all four of these methods.
// Your responder will receive either touchesEnded:withEvent: or touchesCancelled:withEvent: for each
// touch it is handling (those touches it received in touchesBegan:withEvent:).
// *** You must handle cancelled touches to ensure correct behavior in your application. Failure to
// do so is very likely to lead to incorrect behavior or crashes.
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event;
- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event;
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event;
- (void)touchesCancelled:(nullable NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event;
accadendo anche in UIREsponder.h (linea 79):
@interface UIResponder (UIResponderKeyCommands)
@property (nullable,nonatomic,readonly) NSArray<UIKeyCommand *> *keyCommands NS_AVAILABLE_IOS(7_0); // returns an array of UIKeyCommand objects<
@end
Ecco dove sta accadendo in linee CIImage.h 97 un nd 102:
/* Creates a new image from the contents of 'image'. */
+ (CIImage *)imageWithCGImage:(CGImageRef)image;
+ (CIImage *)imageWithCGImage:(CGImageRef)image
options:(nullable CI_DICTIONARY(NSString*,id) *)options;
/* Creates a new image from the contents of 'layer'. */
+ (CIImage *)imageWithCGLayer:(CGLayerRef)layer NS_DEPRECATED_MAC(10_4,10_11);
+ (CIImage *)imageWithCGLayer:(CGLayerRef)layer
options:(nullable CI_DICTIONARY(NSString*,id) *)options NS_DEPRECATED_MAC(10_4,10_11);
Qualcun altro riceve questo errore dal rilascio di iOS 9? Solo curioso. –
Sembra Generics for Objective-C, una nuova funzionalità di Xcode 7 https://developer.apple.com/library/prerelease/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_7_0.html –
Sì, l'ho visto , ma sto ancora usando xcode 6. Inoltre, non spiega ancora perché le librerie di xcode non funzionino correttamente. Penserei che altri avrebbero avuto questo problema se si tratta di un problema con l'SDK. Ho provato tutto quello che posso pensare per risolvere questi errori, ma ancora il presistente. –