2014-10-28 3 views
1

코어 플롯 라이브러리를 사용하여 응용 프로그램을 빌드하는 동안 다음과 같은 문제가 있습니다. 2 일 전에 작동했습니다. 그러나 그것은 갑자기 멈췄다.코어 플롯 빌드가 실패했습니다.

libCorePlot-CocoaTouch.a (2 slices) 
Undefined symbols for architecture x86_64: 
    "_CPTDecimalFromFloat", referenced from: 
     -[GraphView generateLayout] in GraphView.o 
    "_CPTDecimalFromInt", referenced from: 
     -[GraphView generateLayout] in GraphView.o 
    "_OBJC_CLASS_$_CPTAxisLabel", referenced from: 
     objc-class-ref in GraphView.o 
    "_OBJC_CLASS_$_CPTBarPlot", referenced from: 
     objc-class-ref in GraphView.o 
    "_OBJC_CLASS_$_CPTColor", referenced from: 
     objc-class-ref in GraphView.o 
    "_OBJC_CLASS_$_CPTConstraints", referenced from: 
     objc-class-ref in GraphView.o 
    "_OBJC_CLASS_$_CPTFill", referenced from: 
     objc-class-ref in GraphView.o 
    "_OBJC_CLASS_$_CPTGraphHostingView", referenced from: 
     _OBJC_CLASS_$_GraphView in GraphView.o 
    "_OBJC_CLASS_$_CPTMutableLineStyle", referenced from: 
     objc-class-ref in GraphView.o 
    "_OBJC_CLASS_$_CPTMutableTextStyle", referenced from: 
     objc-class-ref in GraphView.o 
    "_OBJC_CLASS_$_CPTPlotRange", referenced from: 
     objc-class-ref in GraphView.o 
    "_OBJC_CLASS_$_CPTXYGraph", referenced from: 
     objc-class-ref in GraphView.o 
    "_OBJC_METACLASS_$_CPTGraphHostingView", referenced from: 
     _OBJC_METACLASS_$_GraphView in GraphView.o 
ld: symbol(s) not found for architecture x86_64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
+0

: 빠른 주셔서 감사합니다 http://stackoverflow.com/a/20266141/4177109 – tbaranes

+0

@Ckouta을 댓글. 나는 그 문제를 해결하지 못했다. – Rakesh

답변

0

프로젝트에 새로운 코어 플롯 라이브러리 프레임 워크를 추가하십시오. 이전 라이브러리를 제거하십시오. 다음 단계를 따르십시오.

  1. 코어 플롯 라이브러리를 다운로드하십시오.
  2. 은 이제 맥 핵심 플롯 프레임 워크 폴더로 이동 프로젝트 및 빌드
  3. 를 클릭하여 Xcode의 CorePlot-CocoaTouch.xcodeproj
  4. 이동을 엽니 다. 당신은 그 안에 빌드 폴더를 볼 수 있습니다.
  5. 이제 터미널을 열고 핵심 플롯 경로를
  6. CD를 CorePlot_1.4/자료 제공//
  7. 유형 사러 -create ./Debug-iphoneos/libCorePlot-CocoaTouch.a ./Debug-iphonesimulator/libCorePlot를 구축 -CocoaTouch.a -output core_plot_all.a
  8. 새 라이브러리가 생성되었으며이 라이브러리 및 핵심 헤더가 프로젝트에 추가됩니다.
  9. 이제 프로젝트를 빌드하십시오. 그 후

다른 링커 플래그에 -ObjC 추가

난 당신이 대답에 솔루션을 찾을 생각