react-native-quick-crypto icon indicating copy to clipboard operation
react-native-quick-crypto copied to clipboard

🔧 Xcode 16 build fails due to OpenSSL-Universal dependancy

Open losh11 opened this issue 1 year ago • 5 comments

How were you trying to build the app?

After upgrading for Xcode 16, my app fails to build on iOS. This error comes from the OpenSSL-Universal dependancy. This dep has now been updated to not fail to build, as seen here: https://github.com/krzyzanowskim/OpenSSL/commit/8729614a93e6b20307db3c3359aed81f030facaa#diff-7333bf151de6d987497db4c0be23e92a89841f5369d1e17b174bcc946c7a3c87

Solution is to upgrade the openssl version.

QuickCrypto Version

0.7.4

Target platforms

iOS

Operating system

MacOS

Can you build the QuickCrypto Example app?

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

Additional information

losh11 avatar Sep 23 '24 01:09 losh11

Tried to execute pod update OpenSSL-Universal It updates the version specified in Podfile.lock and solved the problem

chungcf2006 avatar Sep 30 '24 04:09 chungcf2006

@chungcf2006 Did you do this inside an Expo project or a bare React Native one?

salieflewis avatar Sep 30 '24 18:09 salieflewis

@chungcf2006 Did you do this inside an Expo project or a bare React Native one?

Bare Reace Native Project

chungcf2006 avatar Oct 04 '24 08:10 chungcf2006

@salieflewis for expo projects, you can fix this by pinning the OpenSSL version in your app.json

{
  "expo": {
    "plugins": [
      "expo-build-properties",
      {
        "ios": {
          "extraPods": [
            {
              "name": "OpenSSL-Universal",
              "configurations": ["Release", "Debug"],
              "modular_headers": true,
              "version": "3.3.2000"
            }
          ]
        }
      }
    ]
  }
}

make sure you also have expo-build-properties added to your dependencies.

joaquim-verges avatar Oct 10 '24 22:10 joaquim-verges

@salieflewis for expo projects, you can fix this by pinning the OpenSSL version in your app.json

{
  "expo": {
    "plugins": [
      "expo-build-properties",
      {
        "ios": {
          "extraPods": [
            {
              "name": "OpenSSL-Universal",
              "configurations": ["Release", "Debug"],
              "modular_headers": true,
              "version": "3.3.2000"
            }
          ]
        }
      }
    ]
  }
}

make sure you also have expo-build-properties added to your dependencies.

That looks promising. Thank you for sharing.

salieflewis avatar Oct 11 '24 21:10 salieflewis

Any update on this? I am also having this issue. I see 0.7.5 is out, was this merging in this release?

cmw9706 avatar Oct 22 '24 17:10 cmw9706

OpenSSL has been working for a few builds now. Reopen if this issue persists.

boorad avatar Jan 02 '25 01:01 boorad