rodgomesc / vision-camera-face-detector

VisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector
MIT License
89 stars 65 forks source link

Swift Compiler Error, Xcode 13, iOS #1

Closed daan-b closed 2 years ago

daan-b commented 2 years ago

Hi,

First of all thank you for the good work.

When I want to build with Xcode 13 is get the following error:

react-jsi/jsi/jsi.h:10:10: error: 'cassert' file not found
#include <cassert>
         ^
<unknown>:0: error: could not build Objective-C module 'vision_camera_face_detector'

Environment:

Xcode Version 13.0 (13A233) ReactNative 0.66.0

Steps to reproduce:

react-native init TestCamera
npm i react-native-vision-camera
npx pod-install

Build in Xcode fails:

<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "vision-camera-face-detector-umbrella.h"
        ^
/Users/daanb/Projects/CameraTest/ios/Pods/Headers/Public/vision_camera_face_detector/vision-camera-face-detector-umbrella.h:15:9: note: in file included from /Users/daanb/Projects/CameraTest/ios/Pods/Headers/Public/vision_camera_face_detector/vision-camera-face-detector-umbrella.h:15:
#import "FrameHostObject.h"
        ^
/Users/daanb/Projects/CameraTest/node_modules/vision-camera-face-detector/ios/Pods/VisionCamera/ios/Frame Processor/FrameHostObject.h:11:9: note: in file included from /Users/daanb/Projects/CameraTest/node_modules/vision-camera-face-detector/ios/Pods/VisionCamera/ios/Frame Processor/FrameHostObject.h:11:
#import <jsi/jsi.h>
        ^
/Users/daanb/Projects/CameraTest/ios/Pods/Headers/Public/React-jsi/jsi/jsi.h:10:10: error: 'cassert' file not found
#include <cassert>
         ^
<unknown>:0: error: could not build Objective-C module 'vision_camera_face_detector'
rodgomesc commented 2 years ago

@daan-b which version of vision-camera you have?

rodgomesc commented 2 years ago

@daan-b can you check if the example app runs normally now?, the problem was solved for me

daan-b commented 2 years ago

Thanks @rodgomesc !

I check Monday, I’ll let you know

rodgomesc commented 2 years ago

@daan-b looking forward for a feedback :)

Webics commented 2 years ago

@rodgomesc Sorry, I can build now! Thanks for the quick response!