# \[Archive\] Getting Error when trying to 'Archive' - iOS (React-Native)

**URL:** <https://builder.metamask.io/t/archive-getting-error-when-trying-to-archive-ios-react-native/1199>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [October 11, 2024, 5:11pm UTC](https://builder.metamask.io/t/archive-getting-error-when-trying-to-archive-ios-react-native/1199 "2024-10-11T17:11:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aditya1](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@aditya1](https://builder.metamask.io/u/aditya1)\
**Post date:** [October 11, 2024, 5:11pm UTC](https://builder.metamask.io/t/archive-getting-error-when-trying-to-archive-ios-react-native/1199/1 "2024-10-11T17:11:21Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> 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.

could you please assist us resolve this?

[![image](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/8c5f671171cf2458a24b79656c4a806c9ede5a76.jpeg)
image1702×1042 200 KB
](https://web3auth.io/community/uploads/default/original/2X/c/cf473f21ab5a05a7e52b6b8b19b66e94c27574cc.jpeg "image")

[![IMG_6939](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/83e1af9bb65d5543bf8d3782cc459de6e406619a.jpeg)
IMG\_69391170×1144 243 KB
](https://web3auth.io/community/uploads/default/original/2X/e/e73fb24b5306951edbf3424c0a89a8afaea0a401.jpeg "IMG\_6939")

---

<div class="post-metadata">

**Author:** ![w3abot](https://avatars.discourse-cdn.com/v4/letter/w/4da419/32.png) [@w3abot](https://builder.metamask.io/u/w3abot)\
**Post date:** [October 11, 2024, 5:12pm UTC](https://builder.metamask.io/t/archive-getting-error-when-trying-to-archive-ios-react-native/1199/2 "2024-10-11T17:12:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![aditya1](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@aditya1](https://builder.metamask.io/u/aditya1)\
**Post date:** [October 13, 2024, 10:38pm UTC](https://builder.metamask.io/t/archive-getting-error-when-trying-to-archive-ios-react-native/1199/3 "2024-10-13T22:38:49Z")

</div>

We are using 7.0.1 version

---

<div class="post-metadata">

**Author:** ![yashovardhan](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/yashovardhan/32/1526_2.png) [@yashovardhan](https://builder.metamask.io/u/yashovardhan)\
**Post date:** [October 14, 2024, 8:09am UTC](https://builder.metamask.io/t/archive-getting-error-when-trying-to-archive-ios-react-native/1199/4 "2024-10-14T08:09:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![yashovardhan](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/yashovardhan/32/1526_2.png) [@yashovardhan](https://builder.metamask.io/u/yashovardhan)\
**Post date:** [October 14, 2024, 8:20am UTC](https://builder.metamask.io/t/archive-getting-error-when-trying-to-archive-ios-react-native/1199/5 "2024-10-14T08:20:12Z")

</div>

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](https://github.com/Web3Auth/web3auth-pnp-examples/blob/main/react-native/rn-bare-quick-start/index.js)

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](https://github.com/margelo/react-native-quick-crypto/issues/470)

---

<div class="post-metadata">

**Author:** ![aditya1](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@aditya1](https://builder.metamask.io/u/aditya1)\
**Post date:** [October 14, 2024, 8:49am UTC](https://builder.metamask.io/t/archive-getting-error-when-trying-to-archive-ios-react-native/1199/6 "2024-10-14T08:49:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yashovardhan](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/yashovardhan/32/1526_2.png) [@yashovardhan](https://builder.metamask.io/u/yashovardhan)\
**Post date:** [October 14, 2024, 9:16am UTC](https://builder.metamask.io/t/archive-getting-error-when-trying-to-archive-ios-react-native/1199/7 "2024-10-14T09:16:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aditya1](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@aditya1](https://builder.metamask.io/u/aditya1)\
**Post date:** [October 14, 2024, 12:23pm UTC](https://builder.metamask.io/t/archive-getting-error-when-trying-to-archive-ios-react-native/1199/8 "2024-10-14T12:23:12Z")

</div>

> [@yashovardhan](#):
>
> pod install --repo-update

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

---

<div class="post-metadata">

**Author:** ![yashovardhan](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/yashovardhan/32/1526_2.png) [@yashovardhan](https://builder.metamask.io/u/yashovardhan)\
**Post date:** [October 18, 2024, 6:32am UTC](https://builder.metamask.io/t/archive-getting-error-when-trying-to-archive-ios-react-native/1199/9 "2024-10-18T06:32:26Z")

</div>

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

```
  <a href="https://github.com/margelo/react-native-quick-crypto/issues/470#issuecomment-2420276771" target="_blank" rel="noopener">github.com/margelo/react-native-quick-crypto</a>

```

#### [🐛 Apple Store Rejection](https://github.com/margelo/react-native-quick-crypto/issues/470#issuecomment-2420276771)

```
<div class="github-info">
  <div class="date">
    opened <span class="discourse-local-date" data-format="ll" data-date="2024-10-14" data-time="08:19:50" data-timezone="UTC">08:19AM - 14 Oct 24 UTC</span>
  </div>

  <div class="user">
    <a href="https://github.com/yashovardhan" target="_blank" rel="noopener">
      <img alt="yashovardhan" src="https://web3auth.io/community/uploads/default/original/2X/1/192e7e3fc381fee9bf51127585b8004f28bf8bcc.png" class="onebox-avatar-inline" width="20" height="20" data-dominant-color="5D5A69">
      yashovardhan
    </a>
  </div>
</div>

<div class="labels">
</div>

```

### What's happening?

Hey folks,

We use the react-native-quick-crypto librar…y as a recommended polyfill dependency with our SDKs, but recently multiple of our clients are reporting that because of the OpenSSL dependency, people are facing iOS App Store rejections.

The particulars can be found here:

- When installing the latest version of the library, it throws a series of errors as follows  

- The only way to solve it to add the OpenSSL binaries and manually linking it, using the following steps:

- Now when this is done, the build goes through and the testflight app works, however while trying to publish to the app store, the following error is raised by them

 ![image](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/54a915a39e14dcea55f44449e5a8d0da8922e881.jpeg)

I think this is happening due to the latest version changes in the library. In the past our clients have used this library extensively and did not face any such issues. Any recommendations here will be helpful.

### Reproducible Code

```tsx
import {install} from 'react-native-quick-crypto';

install();

```

### Relevant log output

```shell
N/A

```

### Device

iOS App Store

### QuickCrypto Version

0.7.1

### Can you reproduce this issue in the QuickCrypto Example app?

I didn’t try (⚠ your issue might get ignored & closed if you don’t try this)

### Additional information

- I am using Expo

- I have read the [Troubleshooting Guide](https://github.com/margelo/react-native-quick-crypto/blob/main/docs/troubleshooting.md)

- I agree to follow this project’s [Code of Conduct](https://github.com/margelo/react-native-quick-crypto/blob/main/CODE_OF_CONDUCT.md)

- I searched for [similar issues in this repository](https://github.com/margelo/react-native-quick-crypto/issues) and found none.

> 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](https://discord.com/channels/1147256486762913884/1147309985651503234/1296518828108414996)
