question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] broken build because of libRazorpayCheckout.a

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:39 (17 by maintainers)

github_iconTop GitHub Comments

6reactions
amitbravocommented, May 28, 2018

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

0reactions
ankitkumar003commented, Feb 14, 2020

Razorpay Version: 2.1.32 Xcode: 11.2.1

Error: clang: error: no such file or directory: ‘/Users/ankit/Library/Developer/Xcode/DerivedData/Panasonic_MTP_RN-hfrkrwdcstywuqgdvsifxtbhscqz/Build/Products/Debug-iphonesimulator/libRazorpayCheckout.a’ Command Ld failed with a nonzero exit code

Almost tried everything, framework path, Always Embed Libraries, linking process. Although, removing “libRazorpayCheckout.a” file from Frameworks, libraries and embedded content, removes the error but it doesn’t resolve the purpose.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-razorpay/CHANGELOG.md - UNPKG
13, - React native app is crashing after confirming payment with razorpay test key? ... 195, - \[iOS\] broken build because of libRazorpayCheckout.a...
Read more >
error Failed to build iOS project. We ran "xcodebuild ...
The first solution worked for me. My case was that I moved a react-native project in another folder. That broke the npm run...
Read more >
iOS | Apple Developer Forums
I have no idea what can cause this, as it seems there is no problem with build itself. Provisioning profile used is type...
Read more >
Fix Broken React Native Projects in Xcode 10 - YouTube
In this video we'll learn how to fix an issue where you're unable to build a React Native app in Xcode 10. If...
Read more >
Build Troubleshooting - Visual Studio App Center
The guides in this section provide general troubleshooting tips for App Center Build. General Tips. If you're unsure how to diagnose your issue, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found