2015-07-03 141 views
0

當我嘗試建立,我一直想出此錯誤消息:連接器命令代碼失敗,退出1

Undefined symbols for architecture x86_64: "_ACAccountTypeIdentifierTwitter", referenced from: -[PF_Twitter _getLocalTwitterAccountAsync] in Parse(PF_Twitter.o) "_OBJC_CLASS_$_ACAccountStore", referenced from: objc-class-ref in Parse(PF_Twitter.o) "_OBJC_CLASS_$_SLComposeViewController", referenced from: objc-class-ref in Parse(PF_Twitter.o) "_OBJC_CLASS_$_SLRequest", referenced from: objc-class-ref in Parse(PF_Twitter.o) "_SLServiceTypeTwitter", referenced from: -[PF_Twitter _getAccessTokenForReverseAuthAsync:localTwitterAccount:] in Parse(PF_Twitter.o) -[PF_Twitter _getLocalTwitterAccountAsync] in Parse(PF_Twitter.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

+0

你檢查嗎? [鏈接器命令代碼失敗,退出1] [1] [1]:http://stackoverflow.com/questions/10435213/linker-command-failed-with-exit-code-1-use-v看到調用 –

+0

@iKrutarth是的,我做到了。這就是讓我意識到這是引用我的框架的問題。它只發生在我開始使用帶有可可豆莢的Google Maps SDK之後。我有一個紅色的庫 - 「libPods.a」,我回去檢查了Parse,並且我還有所有需要的框架。 –

回答

0

我知道這是這麼晚來回答......但我覺得這個解決方案...可能是它幫助別人誰搜索同一問題.....

這麼多的相同的錯誤消息不同的問題。(Linker command failed with exit code 1

1)如果你有兩個same constantsdifferent classes那麼這個問題也會發生。

2)如果你有一個意外在實現文件.m file而不是.h file進口。

3)如果您導入了同一個庫的兩個不同版本,在這種情況下只刪除舊版本並只保留一個版本,也會發生此錯誤。

4)添加在 「Project」 該 「other linker flags」,而不是在 「Targets」。所以,你把它移動到「Targets」,它不應該在「Project」。

5)檢查它在項目 - >靶>構建設置 - >搜索使能bitcode->設置DEBUG NO

退房這個..如果是OK,然後做一次類似以下。

菜單>產品>清潔 ...然後運行該項目

希望它可以幫助你.. :)

相關問題