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

🔧 Not able to build expo dev client when using any of the given frame processing plugin for OCR #2901

Closed
5 tasks done
Swikriti0998 opened this issue May 22, 2024 · 2 comments
Labels
🔧 build error Issue is related to building VisionCamera in your project

Comments

@Swikriti0998
Copy link

How were you trying to build the app?

I tried adding an OCR and a barcode scanner frame processor plugin, the barcode is working absolutely fine but while trying to build the dev client build for the OCR plugin it's giving error.

Full build logs

[RUN_FASTLANE]  Packaging react-native-worklets-core Pods/react-native-worklets-core » libreact-native-worklets-core.a
[RUN_FASTLANE]  Packaging react-native Pods/React-CoreModules » libReact-CoreModules.a
[RUN_FASTLANE]  Packaging react-native-vision-camera Pods/VisionCamera » libVisionCamera.a
[RUN_FASTLANE]  Packaging react-native-vision-camera Pods/VisionCamera » libVisionCamera.a
[RUN_FASTLANE]  Executing react-native-vision-camera Pods/VisionCamera » Copy generated compatibility header
[RUN_FASTLANE]  Compiling react-native-vision-camera-v3-text-recognition Pods/react-native-vision-camera-v3-text-recognition » react-native-vision-camera-v3-text-recognition-dummy.m
[RUN_FASTLANE]  Compiling react-native-vision-camera-v3-text-recognition Pods/react-native-vision-camera-v3-text-recognition » VisionCameraV3TextRecognition.m
[RUN_FASTLANE] 
  (node_modules/react-native-vision-camera-v3-text-recognition/ios/VisionCameraV3TextRecognition.m:9:9)

   7 | #import <VisionCamera/FrameProcessorPlugin.h>
   8 | #import <VisionCamera/FrameProcessorPluginRegistry.h>
>  9 | #import <VisionCameraProxy.h>
     |         ^ 'VisionCameraProxy.h' file not found with <angled> include; use "quotes" instead
  10 | #import <VisionCamera/Frame.h>
  11 | @import MLKitVision;
  12 | @interface VisionCameraTextRecognitionV3Plugin : FrameProcessorPlugin

[RUN_FASTLANE] 
❌  (node_modules/react-native-vision-camera/ios/FrameProcessors/VisionCameraProxy.h:12:2)

  10 | 
  11 | #ifndef __cplusplus
> 12 | #error VisionCameraProxy.h has to be compiled with C++!
     |  ^ VisionCameraProxy.h has to be compiled with C++!
  13 | #endif
  14 | 
  15 | #import <Foundation/Foundation.h>

[RUN_FASTLANE] 
❌  (node_modules/react-native-worklets-core/cpp/dispatch/WKTDispatchQueue.h:3:10)

  1 | #pragma once
  2 | 
> 3 | #include <condition_variable>
    |          ^ 'condition_variable' file not found
  4 | #include <cstdint>
  5 | #include <cstdio>
  6 | #include <functional>

[RUN_FASTLANE] › Compiling react-native-vision-camera-v3-text-recognition Pods/react-native-vision-camera-v3-text-recognition » VisionCameraV3TextRecognition.m
[RUN_FASTLANE] 
❌  (node_modules/react-native-vision-camera-v3-text-recognition/ios/VisionCameraV3TextRecognition.m:9:9)

   7 | #import <VisionCamera/FrameProcessorPlugin.h>
   8 | #import <VisionCamera/FrameProcessorPluginRegistry.h>
>  9 | #import <VisionCameraProxy.h>
     |         ^ 'VisionCameraProxy.h' file not found with <angled> include; use "quotes" instead
  10 | #import <VisionCamera/Frame.h>
  11 | @import MLKitVision;
  12 | @interface VisionCameraTextRecognitionV3Plugin : FrameProcessorPlugin

[RUN_FASTLANE] 
❌  (node_modules/react-native-vision-camera/ios/FrameProcessors/VisionCameraProxy.h:12:2)

  10 | 
  11 | #ifndef __cplusplus
> 12 | #error VisionCameraProxy.h has to be compiled with C++!
     |  ^ VisionCameraProxy.h has to be compiled with C++!
  13 | #endif
  14 | 
  15 | #import <Foundation/Foundation.h>

[RUN_FASTLANE] 
❌  (node_modules/react-native-worklets-core/cpp/dispatch/WKTDispatchQueue.h:3:10)

  1 | #pragma once
  2 | 
> 3 | #include <condition_variable>
    |          ^ 'condition_variable' file not found
  4 | #include <cstdint>
  5 | #include <cstdio>
  6 | #include <functional>

[RUN_FASTLANE] › Compiling react-native-vision-camera-v3-text-recognition Pods/react-native-vision-camera-v3-text-recognition » react-native-vision-camera-v3-text-recognition-dummy.m
[RUN_FASTLANE] › Packaging react-native Pods/React-RCTAppDelegate » libReact-RCTAppDelegate.a
[RUN_FASTLANE] › Packaging react-native Pods/React-RCTAppDelegate » libReact-RCTAppDelegate.a
[RUN_FASTLANE] › Compiling react-native-vision-camera-barcodes-scanner Pods/VisionCameraBarcodesScanner » VisionCameraBarcodesScanner.m
[RUN_FASTLANE] › Compiling react-native-vision-camera-barcodes-scanner Pods/VisionCameraBarcodesScanner » VisionCameraBarcodesScanner-dummy.m
[RUN_FASTLANE] › Compiling react-native-vision-camera-barcodes-scanner Pods/VisionCameraBarcodesScanner » VisionCameraBarcodesScanner.m
[RUN_FASTLANE]     Run script build phase '[CP-User] Generate app.manifest for expo-updates' will be run during every build because it does not specify any outputs. To address this warning, 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 'EXUpdates' from project 'Pods')
[RUN_FASTLANE]     Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this warning, 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 'EXConstants' from project 'Pods')
[RUN_FASTLANE]     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 warning, 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_FASTLANE] ▸ ** BUILD FAILED **
[RUN_FASTLANE] ▸ The following build commands failed:
[RUN_FASTLANE] ▸        CompileC /var/folders/4_/9d2lqnld14d3qtt4zrtbjbbr0000gn/T/eas-build-local-nodejs/996f106f-95c7-4f1b-984e-f63aa64abfe1/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-vision-camera-v3-text-recognition.build/Objects-normal/x86_64/VisionCameraV3TextRecognition.o /var/folders/4_/9d2lqnld14d3qtt4zrtbjbbr0000gn/T/eas-build-local-nodejs/996f106f-95c7-4f1b-984e-f63aa64abfe1/build/node_modules/react-native-vision-camera-v3-text-recognition/ios/VisionCameraV3TextRecognition.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-vision-camera-v3-text-recognition' from project 'Pods')
[RUN_FASTLANE] ▸        CompileC /var/folders/4_/9d2lqnld14d3qtt4zrtbjbbr0000gn/T/eas-build-local-nodejs/996f106f-95c7-4f1b-984e-f63aa64abfe1/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-vision-camera-v3-text-recognition.build/Objects-normal/arm64/VisionCameraV3TextRecognition.o /var/folders/4_/9d2lqnld14d3qtt4zrtbjbbr0000gn/T/eas-build-local-nodejs/996f106f-95c7-4f1b-984e-f63aa64abfe1/build/node_modules/react-native-vision-camera-v3-text-recognition/ios/VisionCameraV3TextRecognition.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-vision-camera-v3-text-recognition' from project 'Pods')
[RUN_FASTLANE] ▸ (2 failures)
[RUN_FASTLANE] ** BUILD FAILED **
[RUN_FASTLANE] 
[RUN_FASTLANE] 
[RUN_FASTLANE] The following build commands failed:
[RUN_FASTLANE]  CompileC /var/folders/4_/9d2lqnld14d3qtt4zrtbjbbr0000gn/T/eas-build-local-nodejs/996f106f-95c7-4f1b-984e-f63aa64abfe1/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-vision-camera-v3-text-recognition.build/Objects-normal/x86_64/VisionCameraV3TextRecognition.o /var/folders/4_/9d2lqnld14d3qtt4zrtbjbbr0000gn/T/eas-build-local-nodejs/996f106f-95c7-4f1b-984e-f63aa64abfe1/build/node_modules/react-native-vision-camera-v3-text-recognition/ios/VisionCameraV3TextRecognition.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-vision-camera-v3-text-recognition' from project 'Pods')
[RUN_FASTLANE]  CompileC /var/folders/4_/9d2lqnld14d3qtt4zrtbjbbr0000gn/T/eas-build-local-nodejs/996f106f-95c7-4f1b-984e-f63aa64abfe1/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-vision-camera-v3-text-recognition.build/Objects-normal/arm64/VisionCameraV3TextRecognition.o /var/folders/4_/9d2lqnld14d3qtt4zrtbjbbr0000gn/T/eas-build-local-nodejs/996f106f-95c7-4f1b-984e-f63aa64abfe1/build/node_modules/react-native-vision-camera-v3-text-recognition/ios/VisionCameraV3TextRecognition.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-vision-camera-v3-text-recognition' from project 'Pods')
[RUN_FASTLANE] (2 failures)
[RUN_FASTLANE] Exit status: 65
[RUN_FASTLANE] 
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE] |           Build environment           |
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE] | xcode_path  | /Applications/Xcode.app |
[RUN_FASTLANE] | gym_version | 2.212.2                 |
[RUN_FASTLANE] | sdk         | iPhoneOS17.5.sdk        |
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE] 
[RUN_FASTLANE] Looks like fastlane ran into a build/archive error with your project
[RUN_FASTLANE] It's hard to tell what's causing the error, so we wrote some guides on how
[RUN_FASTLANE] to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[RUN_FASTLANE] Before submitting an issue on GitHub, please follow the guide above and make
[RUN_FASTLANE] sure your project is set up correctly.
[RUN_FASTLANE] fastlane uses `xcodebuild` commands to generate your binary, you can see the
[RUN_FASTLANE] the full commands printed out in yellow in the above log.
[RUN_FASTLANE] Make sure to inspect the output above, as usually you'll find more error information there
[RUN_FASTLANE] 
[RUN_FASTLANE] [!] Error building the application - see the log above
[RUN_FASTLANE] Error: The "Run fastlane" step failed with an unknown error. Refer to "Xcode Logs" below for additional, more detailed logs.

Build failed
The "Run fastlane" step failed with an unknown error. Refer to "Xcode Logs" below for additional, more detailed logs.
npx exited with non-zero code: 1
    Error: build command failed.
 ELIFECYCLE  Command failed with exit code 1.

Project dependencies

"dependencies":{
	"react-native": "^0.73.4",
	"react-native-vision-camera": "^4.0.1",
	"react-native-vision-camera-barcodes-scanner": "^1.0.0",
	"react-native-vision-camera-v3-text-recognition": "^1.1.1",
	"react-native-worklets-core": "^1.3.3",
}

VisionCamera Version

4.0.1

Target platforms

iOS

Operating system

MacOS

Can you build the VisionCamera Example app?

No, I cannot build the Example app either

Additional information

@Swikriti0998 Swikriti0998 added the 🔧 build error Issue is related to building VisionCamera in your project label May 22, 2024
@tfcornerstone
Copy link

@Swikriti0998 That is an issue with the frame processor plugin. Mention this problem in the issues of that project.

@mrousavy
Copy link
Owner

Yea I'm sorry about that. The header path should be <VisionCamera/VisionCameraProxyHolder.h> now - can you update that and send them a PR? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 build error Issue is related to building VisionCamera in your project
Projects
None yet
Development

No branches or pull requests

3 participants