OpenCVForUnity icon indicating copy to clipboard operation
OpenCVForUnity copied to clipboard

Using OpenCVforUnity ARuco samples for iOS build in ARFoundation

Open s1mpl3schizo opened this issue 4 years ago • 1 comments

I am trying to use the Aruco detection in OpenCV sample to build app based on ARFoundation for iOS and this is the error message that I received from Unity when trying to build it. Is it because of the library does not support ARFoundation build for iOS or there are extra steps that I should be doing to be able to build it for iOS devices? image

`The RemoveSimulatorArchitectures() method fails when outputting an Xcode project in UnityEditor on non-macOS. Before outputting the Xcode project, please execute the following command on macOS.

//remove i386 architectures. lipo - remove i386 opencv2.framework / opencv2 - o opencv2.framework / opencv2 //remove x86_64 architectures. lipo - remove x86_64 opencv2.framework / opencv2 - o opencv2.framework / opencv2 //check the architectures. lipo - info opencv2.framework / opencv2

//remove i386 architectures. lipo - remove i386 libopencvforunity.a - o libopencvforunity.a //remove x86_64 architectures. lipo - remove x86_64 libopencvforunity.a - o libopencvforunity.a //check the architectures. lipo - info libopencvforunity.a

UnityEngine.Debug:LogError (object) OpenCVForUnity.OpenCVForUnityIOSBuildPostprocessor:OnPostprocessBuild (UnityEditor.BuildTarget,string) (at Assets/OpenCVForUnity/Editor/OpenCVForUnityIOSBuildPostprocessor.cs:44) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)`

s1mpl3schizo avatar Sep 23 '21 09:09 s1mpl3schizo

Could you tell me the environment you tested? OpenCV for Unity version : ARFoundation version : Unity version : Xcode version : UnityEditor Platform :

EnoxSoftware avatar Sep 23 '21 16:09 EnoxSoftware