2013-05-29 17 views
1

我正在嘗試使用Dave DeLongs DDFileReader Class,但構建時出現錯誤。試圖使用Dave DeLong DDFileReader類

Undefined symbols for architecture x86_64: 
    "_OBJC_CLASS_$_DDFileReader", referenced from: 
     objc-class-ref in tmnAppDelegate.o 
ld: symbol(s) not found for architecture x86_64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

的「DDFileReader.m」有一組目標會員,並在構建階段中的「編譯源代碼」

我在10.8.3用了XCode 4.6.2
我確定這是一個noob錯誤,但我仍然會很感激幫助。

感謝

+0

該應用是否爲該設備編譯?另外,你的.m文件中是否有''@implementation DDFileReader'「? –

+0

哪個.m文件應該是'@implementation DDFileReader'be?在DDFileReader.m或AppDelegate.m中?對不起Objective-C中的noob。我只是把它推到我的github帳戶https://github.com/fabiantheblind/Shorcuts/tree/master/Shortcuts如果你想看看... – fabianmoronzirfas

+0

它應該在DDFileReader.m文件中。現在這個文件基本上是空的。 –

回答

2

當我看着你已經簽入的GitHub你DDFileReader.m文件的全部內容是:

//DDFileReader.m 

#import "DDFileReader.h" 

@interface NSData (DDAdditions) 

@end 

你需要有從.M完整代碼段文件複製在那裏。

+0

哦。對不起,我寫了「DDFileReader.h」這是我的文件 – fabianmoronzirfas

+0

呃。我真是個白癡。 m(謝謝 – fabianmoronzirfas

+1

)這是一個很容易犯的錯誤,而不是白癡,有時只需要兩雙眼睛就可以看到它 –