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