react-native-razorpay: [iOS] broken build because of libRazorpayCheckout.a

All was ok, but couple of days ago my iOS build has been broken with this error:

Undefined symbols for architecture arm64: "_OBJC_CLASS_$__TtC8Razorpay8Razorpay", referenced from: objc-class-ref in libRazorpayCheckout.a(RazorpayCheckout.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I can get rid of this error only by removing libRazorpayCheckout.a from Project target -> General -> Linked Frameworks and Libraries. But this is not acceptable. So why could it happen?

RN: 0.44.0 react-native-razorpay: 1.4.2 Xcode: 9.2

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 39 (17 by maintainers)

Most upvoted comments

it was not header search path , but “framework search path” where I needed to put the line “$(PROJECT_DIR)/…/node_modules/react-native-razorpay/ios/” and now its working