margelo / react-native-quick-crypto

⚡️ A fast implementation of Node's `crypto` module written in C/C++ JSI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

failed build iOS

YudaAdiPratama opened this issue · comments

The following build commands failed:
CompileC /Users/yuda/Library/Developer/Xcode/DerivedData/pixelgeniusWallet-fkewvszdteokdq/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-quick-crypto.build/Objects-normal/arm64/MGLUtils.o /Users/yuda/Documents/pixelgenius/pixelgeniusWallet/node_modules/react-native-quick-crypto/cpp/Utils/MGLUtils.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-quick-crypto' from project 'Pods')
(1 failure)

I have error during build on iOS,

OpenSSL-Universal 3.1.5003
build using Mac silicon apple

Can you include the error that the command gave you?

@boorad having a similar issue when doing a build using EAS. My setup is using Expo

@gabimoncha @YudaAdiPratama I need the error you're seeing from that command.

@boorad this is the error. Btw, I've updated to rc-4 and it disappeared.

› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » react-native-quick-crypto-dummy.m
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » QuickCryptoModule.mm
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLVerifyInstaller.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLUtils.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLTypedArray.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLThreadAwareHostObject.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLSmartHostObject.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLSignInstaller.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLSignHostObjects.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLRsa.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLRandomHostObject.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLQuickCryptoHostObject.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLPbkdf2HostObject.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLKeys.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLHmacInstaller.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLHmacHostObject.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLHashInstaller.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLHashHostObject.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLGenerateKeyPairSyncInstaller.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLDispatchQueue.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLCreateDecipherInstaller.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLCreateCipherInstaller.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLCipherHostObject.cpp

❌  (node_modules/react-native-quick-crypto/cpp/Cipher/MGLCipherHostObject.cpp:580:38)

  578 | 
  579 | #if OPENSSL_VERSION_MAJOR >= 3
> 580 |     if (mode == EVP_CIPH_CCM_MODE && kind_ == kDecipher &&
      |                                      ^ use of undeclared identifier 'kind_'
  581 |         EVP_default_properties_is_fips_enabled(nullptr)) {
  582 | #else
  583 |     if (mode == EVP_CIPH_CCM_MODE && !isCipher_ && FIPS_mode()) {
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » react_native_quick_crypto_vers.c
› Creating  react-native Pods/React-ImageManager » React_ImageManager.framework
› Creating  fincheck Pods/React-Codegen » React_Codegen.framework
› Preparing react-native Pods/React-FabricImage » React-FabricImage-Info.plist
› Compiling react-native Pods/React-FabricImage » ImageState.cpp
› Compiling react-native Pods/React-FabricImage » ImageShadowNode.cpp
› Compiling react-native Pods/React-FabricImage » ImageProps.cpp
⚠️  Script has ambiguous dependencies causing it to run on every build.
   To fix, go to: Xcode » FinCheckPreview/FinCheckPreview » Build Phases » '[CP-User] [RNFB] Core Configuration'
   Either: Uncheck "Based on dependency analysis", or select output files to trigger the script
⚠️  Script has ambiguous dependencies causing it to run on every build.
   To fix, go to: Xcode » FinCheckPreview/FinCheckPreview » Build Phases » '[CP-User] [RNFB] Crashlytics Configuration'
   Either: Uncheck "Based on dependency analysis", or select output files to trigger the script
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	CompileC /Users/expo/Library/Developer/Xcode/DerivedData/FinCheckPreview-ecvfamnamhyipfcezygicsbdzrxn/Build/Intermediates.noindex/ArchiveIntermediates/FinCheckPreview/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/react-native-quick-crypto.build/Objects-normal/arm64/MGLCipherHostObject.o /Users/expo/workingdir/build/node_modules/react-native-quick-crypto/cpp/Cipher/MGLCipherHostObject.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-quick-crypto' from project 'Pods')
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
	CompileC /Users/expo/Library/Developer/Xcode/DerivedData/FinCheckPreview-ecvfamnamhyipfcezygicsbdzrxn/Build/Intermediates.noindex/ArchiveIntermediates/FinCheckPreview/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/react-native-quick-crypto.build/Objects-normal/arm64/MGLCipherHostObject.o /Users/expo/workingdir/build/node_modules/react-native-quick-crypto/cpp/Cipher/MGLCipherHostObject.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-quick-crypto' from project 'Pods')
(1 failure)
Exit status: 65
+---------------------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.219.0                 |
| sdk         | iPhoneOS17.2.sdk        |
+-------------+-------------------------+
Looks like fastlane ran into a build/archive error with your project
It's hard to tell what's causing the error, so we wrote some guides on how
to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
Before submitting an issue on GitHub, please follow the guide above and make
sure your project is set up correctly.
fastlane uses `xcodebuild` commands to generate your binary, you can see the
the full commands printed out in yellow in the above log.
Make sure to inspect the output above, as usually you'll find more error information there
[!] Error building the application - see the log above
Error: The "Run fastlane" step failed with an unknown error. Refer to "Xcode Logs" below for additional, more detailed logs.

Btw, I've updated to rc-4 and it disappeared

Closing because of this. If there's a different error, reopen.

Hey, I'm trying to use this but I'm running into this same issue. When I update to rc-4, I get some sort of base64 not found problem:

For now, I need to revert to to a different library but I would love to figure out how to get this library working.

I'm only running iOS, eas build and the strange thing is, it doesn't break for the pre-build just when running expo run:ios

image

Probably fixed in #303, definitely should be fixed in #309 for iOS. I'm doing testing on the latter right now, and should have a new release candidate at some point in the next hour or two.

@boorad wow thanks! Looking forward to it thank you!