Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes on launch with error dyld`__abort_with_payload: #191

Closed
prashantsingh0205 opened this issue May 27, 2019 · 7 comments
Closed

Comments

@prashantsingh0205
Copy link

I followed the following instructions to integrate the package.
https://razorpay.com/docs/payment-gateway/integrations-guide/mobile/ios/standard/integration-videos/#integrate-the-sdk-using-react-native

Steps I followed:

  • added project manually to Libraries
    Screenshot 2019-05-27 at 10 22 26 AM

  • added librazorpaycheckout.a to 'Link Binary With Libraries'
    Screenshot 2019-05-27 at 10 22 40 AM

-added framework to 'Embedded Libraries'
Screenshot 2019-05-27 at 10 21 51 AM

  • Changed 'Always Embed Swift Standard Libraries' to Yes
    Screenshot 2019-05-27 at 10 20 18 AM

The project builds successfully but gets crashed after launch screen with the following error as seen in attached attached.

Screenshot 2019-05-27 at 10 12 39 AM

Screenshot 2019-05-27 at 10 06 00 AM

Any configuration that I missed?

MacOS - 10.14
Xcode - 10.1 (10B61)
React Native - 0.59.6
React Native Razorpay - 2.1.23

@pronav
Copy link
Contributor

pronav commented May 28, 2019

You need to either update xcode to 10.2, or downgrade react-native-razorpay package to 2.0.20. Latest plugin version works is not compatible with xcode 10.1

@pronav
Copy link
Contributor

pronav commented May 28, 2019

Also, if you've multiple xcode installed, make sure that correct version is selected in Xcode command line tools in Preferences > Locations.

58465773-ff7b8880-8155-11e9-849b-a51e19ff8979

@pronav pronav closed this as completed May 28, 2019
@prashantsingh0205
Copy link
Author

@pronav I was able to build and run the app successfully. It worked by using the version 2.0.20
Now I encountered issue while archive distribution. The archive was created successfully but when I validated I got the following error.

Screenshot 2019-05-29 at 8 51 53 AM

I followed this article http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/ as shown in https://razorpay.com/docs/ios/integration-videos/#create-an-app-archive

Please help!

MacOS - 10.14
Xcode - 10.1 (10B61)
React Native - 0.59.6
React Native Razorpay - 2.0.20

@pronav
Copy link
Contributor

pronav commented May 29, 2019

Under build phases, stripping step should be last step, or at least be after "embed binaries" step

@pronav
Copy link
Contributor

pronav commented May 29, 2019

Also, can you post actual error from "show logs"?

@prashantsingh0205
Copy link
Author

@pronav Thanks a ton!! Dragging it to the last did the work. Thank you once again!!

@Biplovkumar
Copy link

Biplovkumar commented Aug 28, 2019

Plz provide solutions for this code signing error.
Solution :- https://github.com/razorpay/react-native-razorpay/issues/213#issue-485806518.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants