EnoxSoftware / OpenCVForUnity

OpenCV for Unity (Untiy Asset Plugin)
https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088
557 stars 175 forks source link

Using OpenCVforUnity ARuco samples for iOS build in ARFoundation #126

Open s1mpl3schizo opened 3 years ago

s1mpl3schizo commented 3 years ago

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&)`

EnoxSoftware commented 3 years ago

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