2015-04-06 54 views
2

您好我已經添加了解析到我的iOS項目,並試圖使用PFLogInViewcontroller和PFSignUpViewController。我添加了所有需要的庫,特別social.framework和accounts.framework太鏈接器錯誤剛開始在iOS項目中使用parse.com的PFLogInViewController和PFSignUpViewController

但我初始化「PFLogInViewController」和「PFSignUpViewController」我寫的代碼如下後獲得6個錯誤:

PFLogInViewController *logInViewController = [[PFLogInViewController alloc] init]; 
[logInViewController setDelegate:self]; // Set ourselves as the delegate 

// Create the sign up view controller 
PFSignUpViewController *signUpViewController = [[PFSignUpViewController alloc] init]; 
[signUpViewController setDelegate:self]; // Set ourselves as the delegate 

// Assign our sign up controller to be displayed from the login controller 
[logInViewController setSignUpController:signUpViewController]; 

// Present the log in view controller 
[self presentViewController:logInViewController animated:YES completion:NULL]; 

如果我刪除這些行,那麼構建成功,任何一個可以指導我什麼,我錯過這裏,下面是錯誤的:

爲i386硬件架構未定義的符號:

「_ACAccountTypeIdentifierTwit之三 「從引用: - 在解析[PF_Twitter getLocalTwitterAccountAsync](PF_Twitter.o)

」_OBJC_CLASS _ $ _ ACAccountStore「,從引用:在解析 objc級-REF(PF_Twitter.o)

」 _OBJC_CLASS _ $ _ SLComposeViewController」,從引用: objc級-REF在解析(PF_Twitter.o)

「_OBJC_CLASS _ $ _ SLRequest」,從引用:在解析(PF_Twitter.o) objc級-REF

「_SLServiceTypeTwitter」,re從ferenced: - [PF_Twitter setAccessTokenForReverseAuthAsync:localTwitterAccount:]在解析(PF_Twitter.o)

-[PF_Twitter getLocalTwitterAccountAsync] in Parse(PF_Twitter.o) 

LD:符號(多個)未找到i386硬件架構

鐺:錯誤:連接器命令與出口失敗代碼1(使用-v查看調用)

我可以使用故事板使用PFLogInViewController嗎?

+0

誰降低了這一點,爲什麼? – auspicious99 2015-04-08 02:44:54

回答

0

嘗試安裝椰殼。這是爲我工作:)

編輯

如果你不喜歡的CocoaPods安裝,只需在構建階段/鏈接二進制與圖書館加入「Account.framework」和「Social.framework」。

enter image description here