Linker command failed with Undefined symbols for architecture i386
ich versuche zu tun, die halbe Seite curl-Funktion. Dies ist der code den ich verwende:
#import <QuartzCore/QuartzCore.h>
CATransition *animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:1.0f];
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
[animation setType:(notCurled ? @"mapCurl" : @"mapUnCurl")];
[animation setRemovedOnCompletion:NO];
[animation setFillMode: @"extended"];
[animation setRemovedOnCompletion: NO];
notCurled = !notCurled;
Aber ich die folgenden Fehler treten
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CATransition", referenced from:
objc-class-ref in MyMapViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"_OBJC_CLASS_$_CATransition", referenced from:
objc-class-ref in SJMapViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Wie kann ich es lösen?
InformationsquelleAutor Xavi Valero | 2011-12-12
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ihre app beschweren, kann es nicht finden CATransition Symbol.
Haben Sie fügen Sie das QuartzCore-framework, um Ihre app?
Wenn es nicht Hinzugefügt: gehen Sie zu Ihrem Ziel-Einstellungen -> build-Phasen -> link binary -> wählen Sie die Schaltfläche+, und wählen Sie QuartzCore.
importieren Sie Sie dann, wo Sie brauchen, um es zu nutzen:
Hatte das gleiche problem, aber es hatte zu tun mit code, den ich importiert in mein Projekt aus einer anderen Bibliothek. Für den Fall, jemand hat dieses Problem gehen Sie in den Build-Phasen, und fügen Sie die importierten Dateien zum Kompilieren von Quellen.
Danke, @robhasacamera, das ist genau das was ich brauchte. Konnte nicht herausfinden, warum ich immer noch das problem mit den Rahmen und die Importe korrekt eingerichtet.
InformationsquelleAutor shannoga