This topic was originally posted by aditya1 on 10/11/2024.
This content has been migrated from our previous community forum to preserve valuable discussions.
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.
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.
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.
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
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 ?â