fehlende erforderliche Architektur x86_64 in Datei libCorePlot-CocoaTouch.a
LautRay Wenderlich TutorialIch habe folgendes getan:
Schritt 1 - Ich habe heruntergeladenCorePlot_1.4.zip auf der offiziellen Website
Schritt 2 - Ich habe meinem Projekt dieCorePlotHeaders-Ordner und dasstatische Bibliothek mit dem Namen libCorePlot-CocoaTouch.a (Überprüfung"Objekte in den Ordner der Zielgruppe kopieren (falls erforderlich)")
Schritt 3 - Fügte ich hinzuFeld "Andere Linker-Flags" folgende :-ObjC
Schritt 4 - Ich habe eingechecktBinary mit Bibliotheken verknüpfen oblibCorePlot-CocoaTouch.a undQuartzCore Frameworks waren hier
Ergebnis: Wenn ich mein Projekt kompiliere, funktioniert es einwandfrei, wenn ich es verwendeIPhone Retina (4-Zoll). Aber wenn ich benutzeIPhone Retina (4-Zoll-64-Bit) Ich habe die folgende Meldung erhalten, wenn ich versuche, zu erstellen und auszuführen:
ld: warning: ignoring file /blah/blah/libCorePlot-CocoaTouch.a, missing required architecture x86_64 in file /blah/blah/libCorePlot-CocoaTouch.a (3 slices)
Hier die komplette Nachricht:
ld: warning: ignoring file /Users/me/Desktop/project/libCorePlot-CocoaTouch.a, missing required architecture x86_64 in file /Users/me/Desktop/project/libCorePlot-CocoaTouch.a (3 slices)
Undefined symbols for architecture x86_64:
"_CPTDecimalFromCGFloat", referenced from:
-[PatientConstanteVisualiser configurePlots] in PatientConstanteVisualiser.o
-[PatientConstanteVisualiser configureAxes] in PatientConstanteVisualiser.o
"_CPTDecimalFromInteger", referenced from:
-[PatientConstanteVisualiser configureAxes] in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTAxisLabel", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTColor", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTFill", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTMutableLineStyle", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTMutableTextStyle", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTPlotSymbol", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTScatterPlot", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTTheme", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTXYGraph", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_kCPTStocksTheme", referenced from:
-[PatientConstanteVisualiser configureGraph] in PatientConstanteVisualiser.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ich habe mehrere Stunden mit diesem Thema verbracht ... Bitte helfen Sie ...