Getting Error when trying to 'Archive' - iOS (React-Native)

when I try to ‘Archive’ after installing ‘react-native-quick-crypto’, I get series of errors. Upon manually linking OpenSSL, app works till Test Flight. But when I try to add app to apple review, it gets rejected 'saying ‘binary error’.

I have attached the Screenshot of the error for the reference.

we are using Metamask, wallet-connect and coinbase as well where ‘react-native-random-values’ is used.

could you please assist us resolve this?

Hi Aditya! Thank you for reaching out and providing such detailed information about the issue you’re facing.

Here’s a summary of the details you provided for the support team:

  • SDK Details: PnP React Native SDK
  • SDK Version Number: (not specified)
  • Platform: iOS (React-Native)
  • Issue: Error when trying to ‘Archive’ after installing ‘react-native-quick-crypto’.
  • Additional Libraries Used: Metamask, wallet-connect, Coinbase, and ‘react-native-random-values’.
  • Error Description: The app works until Test Flight but gets rejected during apple review due to a ‘binary error’.
  • Attached: Screenshot of the error.

For the support team to assist you better, could you please provide the following additional information?

  • The specific SDK version you are using.
  • Code snippets related to Web3Auth initialization and login, if possible.
  • Any relevant browser console screenshots that could help in diagnosing the issue.

Thank you again, and we hope to get this resolved for you soon!

Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.

We are using 7.0.1 version

Can you try using an older version of react-native-quick-crypto? i think this is happening due to some changes in the latest version of the library. Additionally, if get random values is working for you with other libraries you can try using that with our SDK as well and skip the react-native-quick-crypto entirely.

If you check our pnp react native quick start, we do not use this module there as well. We use this module only in our mpc sdks: web3auth-pnp-examples/react-native/rn-bare-quick-start/index.js at main · Web3Auth/web3auth-pnp-examples · GitHub

So you can safely skip this quick crypto library altogether.

Nonetheless, I have raised an issue on their github as well: 🐛 Apple Store Rejection · Issue #470 · margelo/react-native-quick-crypto · GitHub

When we use web3auth without react-native-quick-crypto, we get the following error:
TypeError: undefined is not an object (evaluating ‘subtle.digest’)

import ‘react-native-get-random-values’;
this line is there in index.js

Can you try running our quick start example and see if you face the same issue? Additionally, just make sure to do a fresh pod install --repo-update following the removal of react-native-quick-crypto and addition of random values

We have manually signed the OpenSSL.xcframework and pushed for review and waiting from apple to review.

Checkout the github issue on this, they have posted an update

bubbletrouble suggested in Discord that you add , "~> 3.2.2000" or whatever version to `“OpenSSL-Universal” - that’s how they got past the App Store submission.

Also said “But maybe its best instead of using OpenSSL-Universal to use the openssl compiled for ios and put into a xcframework ?”

link: Discord