Skip to content

🔧 Build error - use of undeclared identifier 'ToNativeArrayBuffer'; did you mean 'NativeArrayBuffer'? #834

@XChikuX

Description

@XChikuX

How were you trying to build the app?

Before you read any further, I am on windows and build through expo eas. Unfortunately cannot build the example app without setting up a full eas envionment for it at the moment.


So after the recent update my build started failing.

I run eas build --platform ios --profile production

My runs used to work

Core issue from fastlane build logs (I'll include the full logs as well):

› Compiling react-native-quick-crypto Pods/QuickCrypto » ncrypto.cc
› Compiling react-native-quick-crypto Pods/QuickCrypto » XSalsa20Cipher.cpp
› Compiling react-native-quick-crypto Pods/QuickCrypto » QuickCryptoAutolinking.mm
› Compiling react-native-quick-crypto Pods/QuickCrypto » QuickCrypto-Swift-Cxx-Bridge.cpp
› Compiling react-native-quick-crypto Pods/QuickCrypto » OCBCipher.cpp
› Compiling react-native-quick-crypto Pods/QuickCrypto » KeyObjectData.cpp
    Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration, if needed' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hermes-engine' from project 'Pods')
    Run script build phase 'Remove signature files (Xcode workaround)' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Test' from project 'Test')
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	CompileC /Users/expo/Library/Developer/Xcode/DerivedData/Test-cdximgweapuvtehhjdnjpsbhkuxv/Build/Intermediates.noindex/ArchiveIntermediates/Test/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/QuickCrypto.build/Objects-normal/arm64/XSalsa20Cipher.o /Users/expo/workingdir/build/node_modules/react-native-quick-crypto/cpp/cipher/XSalsa20Cipher.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'QuickCrypto' from project 'Pods')

From expo fail job logs:

Build failed: The "Run fastlane" step failed because of an error in the Xcode build process. We automatically detected following errors in your Xcode build logs:
- instead [-Wdeprecated-declarations]
- instead", macosx(10.2,10.14), ios(2.0,12.0), watchos(2.0,5.0), tvos(9.0,12.0));
- instead [-Wdeprecated-declarations]
- instead", macosx(10.2,10.14), ios(2.0,12.0), watchos(2.0,5.0), tvos(9.0,12.0));
- use of undeclared identifier 'ToNativeArrayBuffer'; did you mean 'NativeArrayBuffer'?
- use of undeclared identifier 'ToNativeArrayBuffer'; did you mean 'NativeArrayBuffer'?
- use of undeclared identifier 'ToNativeArrayBuffer'; did you mean 'NativeArrayBuffer'?
Refer to "Xcode Logs" below for additional, more detailed logs.

I checked XSalsa20Cipher.cpp file and noticed the ToNativeArrayBuffer() function. The file has not been modified in 6 months which lead me to believe this is a conflict with a 3rd party package.

So I git reset --hard <last_working_ios_build_commit_id> and re-ran the build and still encountered the issue.

You can see the same version number being built on expo (note, it's one trivial commit away)

Image

However, even that failed. So now, I'm at a loss for what to do. Not at all sure where the error is originating.

Full build logs

✔ Push Notifications are set up

Compressing project files and uploading to EAS Build. Learn more: https://expo.fyi/eas-build-archive
✔ Compressed project files 5s (13.1 MB)
✔ Uploaded to EAS 4s
⌛️ Computing the project fingerprint is taking longer than expected...
⏩ To skip this step, set the environment variable: EAS_SKIP_AUTO_FINGERPRINT=1
✔ Computed project fingerprint

See logs: https://expo.dev/accounts/xchikux/projects/thedatingclub/builds/9cdd14c4-ca1e-4bd0-a331-5e059e2db311

Waiting for build to complete. You can press Ctrl+C to exit.
✖ Build failed

🍏 iOS build failed:
The "Run fastlane" step failed because of an error in the Xcode build process. We automatically detected following errors in your Xcode build logs:
- instead [-Wdeprecated-declarations]
- instead", macosx(10.2,10.14), ios(2.0,12.0), watchos(2.0,5.0), tvos(9.0,12.0));
- instead [-Wdeprecated-declarations]
- instead", macosx(10.2,10.14), ios(2.0,12.0), watchos(2.0,5.0), tvos(9.0,12.0));
- use of undeclared identifier 'ToNativeArrayBuffer'; did you mean 'NativeArrayBuffer'?
- use of undeclared identifier 'ToNativeArrayBuffer'; did you mean 'NativeArrayBuffer'?
- use of undeclared identifier 'ToNativeArrayBuffer'; did you mean 'NativeArrayBuffer'?
Refer to "Xcode Logs" below for additional, more detailed logs.

Project dependencies

"dependencies": {
    "@adrianso/react-native-device-brightness": "^1.2.7",
    "@apollo/client": "~4.0.9",
    "@craftzdog/react-native-buffer": "^6.1.1",
    "@maplibre/maplibre-react-native": "^10.4.0",
    "@notifee/react-native": "^9.1.8",
    "@op-engineering/op-sqlite": "^15.0.7",
    "@qonversion/react-native-sdk": "^10.0.0",
    "@react-native-community/datetimepicker": "8.5.0",
    "@react-native-masked-view/masked-view": "0.3.2",
    "@react-navigation/bottom-tabs": "^7.8.4",
    "@react-navigation/drawer": "^7.7.2",
    "@react-navigation/native": "^7.1.19",
    "@react-navigation/native-stack": "^7.6.2",
    "@shopify/flash-list": "^2.2.0",
    "@shopify/react-native-skia": "^2.3.0",
    "@tamagui/animations-moti": "~1.138.0",
    "@tamagui/babel-plugin": "~1.138.0",
    "@tamagui/config": "~1.138.0",
    "@tamagui/shorthands": "~1.138.0",
    "@tamagui/themes": "~1.138.0",
    "@tamagui/toast": "~1.138.0",
    "apollo-upload-client": "^19.0.0",
    "babel-plugin-react-compiler": "1.0.0",
    "burnt": "^0.13.0", 
    "events": "3.3.0",
    "expo": "~54.0.23",
    "expo-application": "~7.0.7",
    "expo-asset": "~12.0.9",
    "expo-audio": "~1.0.14",
    "expo-background-task": "~1.0.8",
    "expo-battery": "~10.0.7",
    "expo-blur": "~15.0.7",
    "expo-calendar": "~15.0.7",
    "expo-cellular": "~8.0.7",
    "expo-check-installed-apps": "^0.2.9",
    "expo-clipboard": "~8.0.7",
    "expo-constants": "~18.0.10",
    "expo-contacts": "~15.0.10",
    "expo-device": "~8.0.9",
    "expo-file-system": "~19.0.17",
    "expo-font": "~14.0.9",
    "expo-haptics": "~15.0.7",
    "expo-image": "~3.0.10",
    "expo-image-manipulator": "~14.0.7",
    "expo-image-picker": "~17.0.8",
    "expo-insights": "^0.10.7",
    "expo-linear-gradient": "~15.0.7",
    "expo-linking": "~8.0.8",
    "expo-live-photo": "~1.0.7",
    "expo-local-authentication": "~17.0.7",
    "expo-localization": "~17.0.7",
    "expo-location": "~19.0.7",
    "expo-network": "~8.0.7",
    "expo-notifications": "~0.32.12",
    "expo-plugin-ios-static-libraries": "^1.0.4",
    "expo-quick-actions": "5.0.0",
    "expo-random": "^14.0.1",
    "expo-screen-capture": "~8.0.8",
    "expo-secure-store": "~15.0.7",
    "expo-sensors": "~15.0.7",
    "expo-sharing": "~14.0.7",
    "expo-sms": "~14.0.7",
    "expo-splash-screen": "~31.0.10",
    "expo-store-review": "~9.0.8",
    "expo-system-ui": "~6.0.8",
    "expo-task-manager": "~14.0.8",
    "expo-tracking-transparency": "~6.0.7",
    "exponential-backoff": "^3.1.3",
    "graphql": "^16.12.0",
    "jotai": "^2.15",
    "lottie-react-native": "^7.3.4",
    "mime-db": "^1.54.0",
    "moti": "^0.30.0",
    "patch-package": "^8.0.1",
    "posthog-react-native": "4.7.1",
    "react": "19.1.0",
    "react-compiler-runtime": "1.0.0",
    "react-dom": "19.1.0",
    "react-native": "~0.81.5",
    "react-native-animated-glow": "^3.0.1",
    "react-native-animated-splash-screen": "2.0.5",
    "react-native-collapsible": "^1.6.2",
    "react-native-compressor": "1.13.0", 
    "react-native-device-country": "^1.1.1",
    "react-native-edge-to-edge": "^1.7.0",
    "react-native-element-dropdown": "^2.12.4",
    "react-native-fast-tflite": "^1.6.1",
    "react-native-gesture-handler": "~2.28.0",
    "react-native-keyboard-aware-scroll-view": "0.9.5",
    "react-native-material-ripple": "^0.9.1",
    "react-native-mmkv": "^4",
    "react-native-modal": "^14.0.0-rc.1",
    "react-native-nitro-modules": "0.31.6",
    "react-native-otp-entry": "^1.8.5",
    "react-native-pager-view": "^6.9.1",
    "react-native-quick-base64": "^2.2.2",
    "react-native-quick-crypto": "^1.0.0-beta.20",
    "react-native-radar": "~3.22.0",
    "react-native-reanimated": "~4.1.5",
    "react-native-reanimated-carousel": "^4.0.3",
    "react-native-safe-area-context": "~5.6.2",
    "react-native-screens": "^4.18.0",
    "react-native-share": "^12.2.0",
    "react-native-svg": "15.14.0",
    "react-native-svg-transformer": "^1.5.1",
    "react-native-swiper-flatlist": "^3.2.5",
    "react-native-unistyles": "^3.0.17",
    "react-native-vision-camera": "~4.7.3",
    "react-native-vision-camera-face-detector": "1.8.8",
    "react-native-web": "^0.21.2",
    "react-native-webview": "^13.16.0",
    "react-native-worklets": "^0.6.1",
    "react-native-worklets-core": "^1.6.2",
    "readable-stream": "^4.7.0",
    "rive-react-native": "^9.7.0",
    "rn-swiper-list": "^3.0.0",
    "rxjs": "^7.8.2",
    "tamagui": "~1.138.0",
    "victory-native": "37.3.6",
    "zustand": "^5.0.8"
  },

QuickCrypto Version

1.0.0-beta.21

Target platforms

iOS

Operating system

Windows, Linux

Can you build the QuickCrypto Example app?

No, I cannot build the Example app either

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions