Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
299 views
in Technique[技术] by (71.8m points)

ios - Parse Starter Project LogIn and Register View Controllers Errors

When I tried to use the Parse Starter Project (I downloaded it and installed it as per the instructions, but I don't have a developer's license yet, so no push notifications), I got six errors, all about referencing twitter Mach-O Link errors. Here they are:

Undefined symbols for architecture i386:

"_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 i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I had this same issue. The login related classes for parse require you to add two additional frameworks beyond what is listed in their quick start documentation:

Social.framework
Accounts.framework

These frameworks are part of iOS. Simply go to the projects Build Phases->Link Binary with Libraries and add them. I hope you find this helpful.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...