jaroslawkrol / vision-camera-realtime-object-detection

VisionCamera Frame Processor Plugin to detect objects using TensorFlow Lite Task Vision
MIT License
106 stars 13 forks source link

Fails to compile RealtimeObjectDetectionProcessor.m on Expo (dev client) #9

Open spector32 opened 1 year ago

spector32 commented 1 year ago

I get the following error on Fastlane:

› Compiling vision-camera-realtime-object-detection Pods/vision-camera-realtime-object-detection » RealtimeObjectDetectionProcessor.m

❌ (node_modules/vision-camera-realtime-object-detection/ios/RealtimeObjectDetectionProcessor/RealtimeObjectDetectionProcessor.m:116:1)

114 | VISION_EXPORT_FRAME_PROCESSOR(detectObjects) 115 |

116 | @end | ^ expected function body after function declarator 117 |

❌ (node_modules/vision-camera-realtime-object-detection/ios/RealtimeObjectDetectionProcessor/RealtimeObjectDetectionProcessor.m:116:5)

114 | VISION_EXPORT_FRAME_PROCESSOR(detectObjects) 115 |

116 | @end | ^ missing '@end' 117 |

› Compiling vision-camera-realtime-object-detection Pods/vision-camera-realtime-object-detection » vision-camera-realtime-object-detection-dummy.m

› Compiling react-native Pods/React-RCTText » React-RCTText-dummy.m

› Compiling react-native Pods/React-RCTText » RCTVirtualTextViewManager.m

› Compiling react-native Pods/React-RCTText » RCTVirtualTextShadowView.m

› Compiling react-native Pods/React-RCTText » RCTUITextView.m

Run script build phase 'Start Packager' 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 'cartassistant' from project 'cartassistant')

Run script build phase 'Bundle React Native code and images' 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 'cartassistant' from project 'cartassistant')

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 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')

ARCHIVE FAILED

▸ The following build commands failed:

▸ CompileC /Users/expo/Library/Developer/Xcode/DerivedData/cartassistant-akpjcaadzqpsfueogiqdhbickvbt/Build/Intermediates.noindex/ArchiveIntermediates/cartassistant/IntermediateBuildFilesPath/Pods.build/Debug-iphoneos/vision-camera-realtime-object-detection.build/Objects-normal/arm64/RealtimeObjectDetectionProcessor.o /Users/expo/workingdir/build/node_modules/vision-camera-realtime-object-detection/ios/RealtimeObjectDetectionProcessor/RealtimeObjectDetectionProcessor.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'vision-camera-realtime-object-detection' from project 'Pods')

▸ (1 failure)

2023-09-13 07:26:14.244 xcodebuild[4734:13946] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)

ARCHIVE FAILED

The following build commands failed:

CompileC /Users/expo/Library/Developer/Xcode/DerivedData/cartassistant-akpjcaadzqpsfueogiqdhbickvbt/Build/Intermediates.noindex/ArchiveIntermediates/cartassistant/IntermediateBuildFilesPath/Pods.build/Debug-iphoneos/vision-camera-realtime-object-detection.build/Objects-normal/arm64/RealtimeObjectDetectionProcessor.o /Users/expo/workingdir/build/node_modules/vision-camera-realtime-object-detection/ios/RealtimeObjectDetectionProcessor/RealtimeObjectDetectionProcessor.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'vision-camera-realtime-object-detection' from project 'Pods')

(1 failure)

Exit status: 65

+-------------+-------------------------+

| Build environment |

+-------------+-------------------------+

| xcode_path | /Applications/Xcode.app |

| gym_version | 2.213.0 |

| sdk | iPhoneOS16.4.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

[stderr]

[!] Error building the application - see the log above

spector32 commented 1 year ago

It seems that the problem is that this plugin is not compatible with version 3 of https://github.com/mrousavy/react-native-vision-camera yet

lucksp commented 1 year ago

It seems that the problem is that this plugin is not compatible with version 3 of https://github.com/mrousavy/react-native-vision-camera yet

Do the maintainers of this repo have any status update on compatibility with V3 of RNVC?