2010-05-06 84 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