Reputation: 67
Trying to use ParseKit in a project via cocoapods, but I am encountering linking errors.
All other cocoapods libraries work fine.
platform :osx, '10.7'
pod 'ParseKit', '0.7'
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
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