I just started to try out the Stripe's new SDK for Apple pay integration and hitting an error in the first step itself. I'm using the Xcode 6 GM version. I followed these instructions.
I included the Stripe library by cloning from GitHub and copied the folder into my project.
I have not even begun to code anything, I keep hitting the MACH-O linker error during the build.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_STPTestPaymentAuthorizationViewController", referenced from:
objc-class-ref in Stripe.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried deleting the 'Derived Data' folder and cleaning the Build Folder as specified in this link: XCode/PhoneGap - Apple Mach-O Linker Error. No use. I've tried including the library in both Objective-C and Swift language projects.
Anyone facing this issue or could give any hints on how to resolve it? Other Swift projects are compiling fine, it's this one that is troublesome.
Okay, I tried out the lipo command, here's the output:
yoda:~ manju$ lipo -info libstripe.a
fatal error: /Users/manju/Documents/xcode 6/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: libstripe.a (No such file or directory)