2010-05-06 86 views
1

我在编译当前版本时遇到问题。 我可以使用它来下载源分布的副本今天:在CorePlot-CocaTouch项目中编译错误

汞柱克隆https://core-plot.googlecode.com/hg/核心情节

我打开了“核心剧情/框架”。 然后我双击CorePlot-CocoaTouch.xcodeproj启动Xcode。 当我建立了项目,我得到以下错误:

-(void)bind:(NSString *)binding toObject:(id)observable withKeyPath:(NSString *)keyPath options:(NSDictionary *)options 
{ 
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE 
    [NSException raise:CPException format:BindingsNotSupportedString]; 
              Format not a string literal and no formal arguments 
#else 
    [super bind:binding toObject:observable withKeyPath:keyPath options:options]; 
#endif 
} 

我与OS 10.6上一个新的MacBook上运行,而IPhone模拟器4.0。 任何帮助将不胜感激。

查尔斯

回答

0

项目中的搜索BindingsNotSupportedString,好像这不是在当前文件,因此需要包括在内。或者只是尝试将其更改为可接受的格式。

2

问这个问题的更合适的地方是Core Plot mailing list,因为我是定期访问这个项目的少数几个开发人员之一。

这就是说,这里的问题是,我们正在使用字符串常量的格式字符串,现在Xcode似乎警告(正确,因为这可能会导致问题)。要解决此现在,你可以

static NSString * const BindingsNotSupportedString = @"Bindings are not supported on the iPhone in Core Plot"; 

#define BindingsNotSupportedString @"Bindings are not supported on the iPhone in Core Plot" 
最佳
+0

更换线CPLayer.m我可以告诉大家,这还没有被固定在最新的核心情节。 – 2010-06-23 21:36:58

+0

@Ben Collins - 更新您的本地副本。这是固定的6月8日。我刚刚尝试与iPhone 4通用汽车,它不再抛出这个警告编译。 – 2010-06-25 15:46:25

+0

是的,谢谢。发生了什么事情,我做了一个mercurial拉和合并遗漏了更新。不知道为什么,但我做了一个新的克隆,它都很好。我是一个善变的新手,所以我可能错过了一些明显的东西。 – 2010-06-25 16:39:31