Daisy R.
Daisy R.

Reputation: 633

Adding Stripe Pod- linker error

The pod was installed properly. I also tried a clean/build multiple times. My header files are included in the bridging header. My architectures include arm64 but I'm still receiving this error.

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Stripe", referenced from:
 __TMaCSo6Stripe 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: 3

Views: 627

Answers (2)

Daisy R.
Daisy R.

Reputation: 633

Actually when I ran pod install, it didn't inherit my path in

 OTHER LINKER FLAGS

so it was a manual fix by adding

$(inherited)

Hope this helps someone if they encounter the same problem.

Upvotes: 4

kneuben_studdard
kneuben_studdard

Reputation: 96

I just integrated the Stripe cocoapod yesterday and had quite a few issues myself. I'm guessing in your Stripe/Support Files in your Pods directory, you have a file called Stripe-umbrella.h.

The only luck I had integrating Stripe was importing the umbrella file in my bridging header like below (make sure to remove quotes):

#import <Stripe/Stripe-umbrella.h>

Add this, clean, build and you should have better luck.

For the record, I'm using XCode7.

Upvotes: 0

Related Questions