Saturday, 14 March 2015

parse and restkit

Because my IOS project was created by parse (actually, I downloaded a sample project from parse).

Everything works fine with xcode and my iphone devices.

However, recently I am going to use Restkit in this project, and I would like to use cocoapods to manage it instead of manually manage it.


First, I tried to manage Restkit and parse all by pods, but that doesn't work, because i totally messed with parse plugin names and versions.

My solution is : keep my old project with parse installed, and use pods to mange Restkit.


Second, install Restkit by cocoapods, I can't install because the pod install command stucked. I finally solved it and I have a post for it:

http://baiduhix.blogspot.co.uk/2015/03/cocoapods-install-stuck-and-keep.html


Third, After I installed the Restkit, my xcode project build failed:


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)



solution is :to check they are all linked properly by comparing your left side pane (where you see frameworks) and the target -> Build settings under the Linked Frameworks and Library.








No comments:

Post a comment