Mike
Mike

Reputation: 67

Parsekit and Cocoapods

Trying to use ParseKit in a project via cocoapods, but I am encountering linking errors.
All other cocoapods libraries work fine.

Podfile

platform :osx, '10.7'

pod 'ParseKit', '0.7'

Error

Undefined symbols for architecture x86_64:

  "_OBJC_CLASS_$_PKToken", referenced from:

      objc-class-ref in AppDelegate.o

  "_OBJC_CLASS_$_PKTokenizer", referenced from:

      objc-class-ref in AppDelegate.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Upvotes: 0

Views: 432

Answers (1)

DanBrooker
DanBrooker

Reputation: 145

There is an issue with the 0.7 podspec for ParseKit, it doesn't quite include all the necessary files. I had the same issue and fixed it by changing the podspec to read.

s.source_files           =  'include/**/*.{h,m}', 'src/**/*.{h,m}', 'lib/MGTemplateEngine/MGTemplate*.{h,m}', 
                          'lib/MGTemplateEngine/ICUTemplateMatcher.{h,m}', 
                          'lib/MGTemplateEngine/*DeepMutableCopy.{h,m}'

You can clone the github repository and copy the podspec into it, make this change and then use the :path option for the pod to use the local copy

Upvotes: 1

Related Questions