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

Fails to build for iOS in Expo EAS #77

Open
danscan opened this issue Jul 26, 2022 · 10 comments
Open

Fails to build for iOS in Expo EAS #77

danscan opened this issue Jul 26, 2022 · 10 comments
Labels
bug Something isn't working

Comments

@danscan
Copy link

danscan commented Jul 26, 2022

I'm encountering the following when trying to build for iOS in Expo EAS.

  • Version 0.4.3
  • No such issues happen when building locally on apple silicon
❌  Undefined symbols for architecture arm64
┌─ Symbol: _SHA512_Init
└─ Referenced from: _fastpbkdf2_hmac_sha512 in libreact-native-quick-crypto.a(fastpbkdf2.o)

❌  ld: symbol(s) not found for architecture arm64


❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)

▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	Ld /Users/expo/Library/Developer/Xcode/DerivedData/Genesis-earvumgnsszrpedcrmdycnmubadt/Build/Intermediates.noindex/ArchiveIntermediates/Genesis/InstallationBuildProductsLocation/Applications/Genesis.app/Genesis normal (in target 'Genesis' from project 'Genesis')
▸ (1 failure)
2022-07-26 16:16:

Any ideas?

Very excited to try this lib!

@mrousavy
Copy link
Member

Hi!

Which React Native version are you using? Can you open your project in Xcode and try building from there, then send me a screenshot of the error window (where only errors are visible, not warnings)? Thanks!

@danscan
Copy link
Author

danscan commented Jul 30, 2022

React Native 0.69.3 – weirdly, there were no build errors locally. They only occurred for me in EAS.

@mrousavy
Copy link
Member

mrousavy commented Aug 1, 2022

Can you maybe share your Podfile.lock here? I'm trying to find out which OpenSSL version you are using.

@Szymon20000
Copy link
Member

Do you use expo-community-flipper by any chance? Looks for me that openSSL version is the problem here.

@PadovaY
Copy link

PadovaY commented Aug 1, 2022

I have a similar issue, but on a project without expo.
flipper version is 0.156.0 and uses OpenSSL-universal version 1.1.1100
as react-native-quick-crypto needs 1.1.1300?

react-native version: 0.68.2
image

any suggestions?

@Szymon20000
Copy link
Member

Looks like flipper is the issue. Can you comment out the use_flipper line from your podfile and check it one more time?

@PadovaY
Copy link

PadovaY commented Aug 1, 2022

Looks like flipper is the issue. Can you comment out the use_flipper line from your podfile and check it one more time?

indeed commenting out use_flipper as suggested (and installing the needed pod CocoaAsyncSocket) enabled to archive successfully.

could you guys find a solution other than that? 🙏 @mrousavy @Szymon20000

@izakfilmalter
Copy link

Running into the same issue. Would be great to have this working.

@adilmezghouti
Copy link

It looks like the OpenSSL-Universal version is hardcoded in the Flipper-Folly podspec. Check out line 26 here: https://github.com/CocoaPods/Specs/blob/master/Specs/5/7/2/Flipper-Folly/2.6.10/Flipper-Folly.podspec.json. Updating the logic in there to read the version from an environment variable and defaulting to a hardcoded value would have been nice.

@adilmezghouti
Copy link

Running into the same issue. Would be great to have this working.

Have you tried to add OpenSSL.xframework to the "Framework, Libraries, and Embedded Content" section of your project target? This fixed the issue for me.

@Montchy Montchy added the bug Something isn't working label Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants