2012-11-20 85 views
1

我想在我的電腦中編譯我的同事的項目。該項目正在他的電腦中編譯。當我拷貝過來和編譯,我得到這個錯誤:編譯一個項目,其中有sharekit

Undefined symbols for architecture i386: 
    "_OBJC_CLASS_$_DefaultSHKConfigurator", referenced from: 
     _OBJC_CLASS_$_ShareKitConfiguration in ShareKitConfiguration.o 
    "_OBJC_CLASS_$_SHK", referenced from: 
     objc-class-ref in AppDelegate.o 
     objc-class-ref in VideoDetails.o 
    "_OBJC_CLASS_$_SHKActionSheet", referenced from: 
     objc-class-ref in VideoDetails.o 
    "_OBJC_CLASS_$_SHKConfiguration", referenced from: 
     objc-class-ref in AppDelegate.o 
    "_OBJC_CLASS_$_SHKFacebook", referenced from: 
     objc-class-ref in AppDelegate.o 
    "_OBJC_CLASS_$_SHKItem", referenced from: 
     objc-class-ref in VideoDetails.o 
    "_OBJC_METACLASS_$_DefaultSHKConfigurator", referenced from: 
     _OBJC_METACLASS_$_ShareKitConfiguration in ShareKitConfiguration.o 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

試圖解決錯誤,但沒有能夠解決它..需要一些幫助和指導..

回答

1

你可能有ShareKit作爲子模塊和導入XCode項目。在你的git回購中,請撥打以下命令:

git submodule init 
git submodule update 

然後重新啓動XCode並嘗試構建它。如果仍有問題,請確保您的項目已根據此處的ShareKit安裝說明進行配置:https://github.com/ShareKit/ShareKit/wiki/Installing-sharekit

相關問題