当我尝试构建时,我不断提出此错误消息:
体系结构x86_64的未定义符号:“_ ACAccountTypeIdentifierTwitter”,引用自: - Parse(PF_Twitter.o)中的[PF_Twitter _getLocalTwitterAccountAsync]“_ OBJC_CLASS _ $ _ ACAccountStore”,引自:Parse中的objc-class-ref(PF_Twitter.o)“_ OBJC_CLASS_ $ SLComposeViewController“,引自:Parse中的objc-class-ref(PF_Twitter.o)” OBJC_CLASS _ $ _ SLRequest“,引自:Parse中的objc-class-ref(PF_Twitter.o)”_ SLServiceTypeTwitter“,引用自: - [PF_Twitter _getAccessTokenForReverseAuthAsync :Parse(PF_Twitter.o)中的localTwitterAccount:] - Parse(PF_Twitter.o)中的[PF_Twitter _getLocalTwitterAccountAsync] ld:未找到架构x86_64 clang的符号:错误:链接器命令失败,退出代码为1(使用-v to看调用)
1 回答
我知道现在回答这么晚......但是我找到了解决方案...可能会帮助那些寻找相同问题的人......
同一错误消息有很多不同的问题 . (
Linker command failed with exit code 1
)1) 如果您在
different classes
中有两个same constants
,那么此问题也会发生 .2) 如果您在实现文件中意外导入
.m file
而不是.h file
.3) 如果您导入了同一个库的两个不同版本,也会发生此错误,在这种情况下,只需删除旧版本并仅保留一个版本 .
4) 添加“
other linker flags
" in "Project
" and not in "Targets
". So, you move it to "Targets
", it shouldn't be in "Project
” .5) 在DEBUG的 project->target->build settings-> search enable bitcode->set NO 中查看
看看这个..如果没关系那么一次就好了 .
Menu > Product > Clean ...然后运行项目
希望它可以帮助你.. :)