cześć,
mam trudność w uruchomieniu Core Plot na iPhonie (póki co symulator) w Xcode 4, czy ktoś korzystał z tego rozwiązania i byłby mi w stanie pomóc gdzie robię błąd?
Mam w
~/Library/SDKs/ folder CorePlotSDK a w nim zawarte są m. in. w dalszych folderach
CPTheme.h
CPXYGraph.h
CPLayerHostingView.h
Mam zapis w kodzie
#import <CorePlot/CorePlot.h> tam gdzie używam (przynajmniej chce użyć) wykresu
mam w Additional SDKs
${HOME}/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk
mam w Other Linker Flags
-lCorePlot
jeżeli tutaj dodałem -all_load lub -ObjC narzeka mi program, że nie wie co to NSArray, NSDictionary itd...
Mam framework Quartz Core
Mam zapis
IBOutlet CPLayerHostingView *graphHost;
program nie wykrzacza i kompiluje sie bez problemu i uruchamia bez crasha
Natomiast, jeżeli dodałem coś oto takiego:
Dostaje FailaKod:CPXYGraph *graph = [[CPXYGraph alloc] initWithFrame:CGRectZero]; CPTheme *theme = [CPTheme themeNamed:@"Dark Gradients"]; [graph applyTheme:theme]; graph.paddingTop = 30.0; graph.paddingBottom = 30.0; graph.paddingLeft = 50.0; graph.paddingRight = 50.0;
Co zrobić?Kod:Ld /Users/Krzysiek/Library/Developer/Xcode/DerivedData/PlotTest-fnbxlrntgjiartfguqhtmsbotihv/Build/Products/Debug-iphonesimulator/PlotTest.app/PlotTest normal i386 cd /Users/Krzysiek/Documents/Development/Testy/PlotTest setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -arch i386 -isysroot /var/folders/Cg/Cg4MonaAFcO4yHgMfNlaWU+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.3-cpeizgfffskiqdggjugtcxrrftrv -L/Users/Krzysiek/Library/Developer/Xcode/DerivedData/PlotTest-fnbxlrntgjiartfguqhtmsbotihv/Build/Products/Debug-iphonesimulator "-L/Users/Krzysiek/Documents/Development/Testy/PlotTest/../../../../Downloads/CorePlot 0-1.2.2/Source/build/Debug-iphonesimulator" -F/Users/Krzysiek/Library/Developer/Xcode/DerivedData/PlotTest-fnbxlrntgjiartfguqhtmsbotihv/Build/Products/Debug-iphonesimulator -filelist /Users/Krzysiek/Library/Developer/Xcode/DerivedData/PlotTest-fnbxlrntgjiartfguqhtmsbotihv/Build/Intermediates/PlotTest.build/Debug-iphonesimulator/PlotTest.build/Objects-normal/i386/PlotTest.LinkFileList -mmacosx-version-min=10.6 -lCorePlot -Xlinker -objc_abi_version -Xlinker 2 -framework UIKit -framework Foundation -framework CoreGraphics -framework QuartzCore -o /Users/Krzysiek/Library/Developer/Xcode/DerivedData/PlotTest-fnbxlrntgjiartfguqhtmsbotihv/Build/Products/Debug-iphonesimulator/PlotTest.app/PlotTest Undefined symbols for architecture i386: "_OBJC_CLASS_$_CPXYGraph", referenced from: objc-class-ref in PlotTestViewController.o "_OBJC_CLASS_$_CPTheme", referenced from: objc-class-ref in PlotTestViewController.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status
Uploaded with ImageShack.us
Pozdrawiam
Krzysztof




LinkBack URL
About LinkBacks



