2015-09-24 17 views
6

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); 
+2

Qualcun altro riceve questo errore dal rilascio di iOS 9? Solo curioso. –

+0

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 –

+0

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. –

risposta

0

ho rivisitato questo problema e sembra altri hanno affrontato in diversi thread & su github.

Il problema era che il framework Parse/Bolts che avevo incluso nel mio progetto non era aggiornato e che li avevo salvati localmente nel mio progetto. La versione che avevo nel mio progetto era in conflitto con xcode 7.

Dopo aver rimosso tutte le copie locali e aggiunto "pod 'Parse'" al mio file pod ed eseguito 'pod install', questo problema specifico è stato risolto.

Per chiunque abbia un problema correlato, provare ad aggiornare le vecchie dipendenze che sono rimaste nel progetto e vedere quale soluzione risolve questo problema.

Ecco alcuni fili correlati che discutere la questione in modo più dettagliato:

Type arguments cannot be applied to non-parameterized class BFTask in PFAnalytics and PFObject

https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/297

0

Avevo anche questo errore, e ho appena cambiato @class a @import della problematica classe come poi pulire e costruire e ok di nuovo ... qualche bug credo ... La classe con problemi era la mia classe parametrizzata.

Problemi correlati