views:

140

answers:

2

Hello, I downloaded the CorePlotSDK, installed it using the readme instructions: copied the coreplotsdk directory to ~/Library/SDKs/ - imported in the PCH file - added $HOME/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk to the additional SDKs and -ObjC -all_load -lCorePlot to the other linker flags setting.

Now, if I try to build the project, I get this error:

Internal error occurred while creating dependency graph: * -[NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: SDKRootPath)

What's that?!? I've never seen it and google can't help.

A: 

Yep - seeing exactly the same thing as the poster. Using XCode 4.0 (Build 4A119a), and the latest from CorePlot.....

It also tells you to import QuartzCore (which I did, and I assume the poster did as well, cos it's still broken :-)

The CorePlot docs say that you can put the SDK anywhere you like, and mentions both ~/Library and /Library as appropriate places. I tried both and got the same error (although the error appeared more quickly when it was in /Library, but this could be unrelated).

It fails this way whether the target is the iphone, or the simulator (I checked that because the CorePlot sdk is different for the two).

One thing that I noticed is that the plist entries for the two sdks indicate that they are for iphoneOS 3.0 rather than 4. That might be worth checking.....

Cheers

Peter

p.s. wondering if it might be a resurfacing of this issue: http://www.mailinglistarchive.com/[email protected]/msg17993.html

I'll fiddle around and post back if I can get it working....

Update: I gave up on XCode 4 as it kept crashing and is still way too buggy for primetime. Back on XCode 3.2 it all compiled and ran fine.... I think I'll wait until a new version of XCode comes out before trying it again.

Peter
A: 

@peter, Can u help me in installing the CorePlotSdk?

I downloaded the CorePlotSDK and tried to install with given instructions as below.

Five Steps to CorePlot

  1. Copy the CorePlotSDK directory to ~/Library/SDKs/

  2. Add to your project's .PCH file:

import

  1. Open Project -> Edit Project Settings and for All Configurations:

3a. Add to Additional SDKS:

$HOME/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk

3b. Add to Other Linker Flags:

-ObjC -all_load -lCorePlot

  1. Add the QuartzCore framework to the project.

  2. Add a CPGraph to your application.

From above 5 Steps, i dont know adding CPGraph to application as mentioned in step 5. help me in this regard.

Result of Build and Run: #import expects "FILENAME" or

import "CPAnnotationHostLayer.h>

import "CPAxis.h>

import "CPAxisLabel.h>

import "CPAxisLabelGroup.h>

import "CPAxisSet.h>

santosh kumar