我在我的iPhone應用程序中使用sharekit 2.0。我已安裝並遵循關於https://github.com/ShareKit/ShareKit/wiki/Installing-sharekit的所有說明。該應用程序構建精細雖然有警告(不是錯誤),如下ShareKit 2.0崩潰
ld: warning: directory not found for option '-L/Users/ilaagarwal/Downloads/Thomas/puzzle game with friends/Twitter+OAuth/Libraries & Headers'
我做了一個按鈕,按下按鈕下面的動作發生
- (IBAction)OnShareFacebook:(id)sender {
SHKItem *item = [SHKItem text:@"message to share"];
NSLog (@"Button Pressed");
}
應用崩潰,一旦它試圖執行SHKitem線。如果我評論該行,該行爲可以很好地執行,不會出現任何錯誤。任何線索爲什麼它使用SHKItem崩潰,我如何解決它。
如果您向我們提供實際的崩潰消息,它將有助於確定您的問題。 – skram
你確定SHKItem有一個類方法「text」爲你創建一個SHKItem的實例嗎? –