Open Darshandegr8 opened 5 years ago
FYI I have purchased both the asset from asset store -Dlib FaceLandmark Detector -https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088
Fixed it disable bitcode in build settings
I can confirm @Darshandegr8 issue and solution. Verified on:
It would be nice to add a sticky note about the issue on the readme here, on the website and on the asset store page :)
Since upgrading to Catalina I can no longer archive and upload to the App Store -
After getting this error I disable bitcode as outlined in other posts here but I then get this error
This all worked prior to switching to Catalina -
Thank you very much for reporting.
Can you tell me the environment you tested? macOS version : Xcode version : Unity version : OpenCV for Unity version :
Thanks for replying Mac OS Catalina 10.15.4 Xcode 11.3 Unity 2019.2.12f OpenCV for Unity 2.3.8
Thanks Liam
Do you see 'success : Architectures ...' in the UnityEditor console when the iOS project output is complete?
Hi :)
I'm getting the same error.
XCode:11.3
I use Dlib and OpenCv in my project.
Im waiting your support. Please help me.
@bugrahanbayat Thank you very much for reporting. Are you getting the following errors?
Greetings no, I'm getting this error.
I tested the upload in my environment and the App file uploaded successfully with no problems. If you send me an email in the contact form, I will send you the Unity project that I have tested. https://enoxsoftware.com/opencvforunity/contact/technical-inquiry/
Validate App success Distribute App -> Export success Distribute App -> Upload success
Environment Mac OS Catalina 10.15.4 Xcode 11.3 (11C29) Unity 2019.2.14f OpenCV for Unity 2.3.8
Setup
@bugrahanbayat Thank you very much for reporting. Are you getting the following errors?
I got this error. How to fix it? Thanks in advance.
@marimomo00 Thank you very much for reporting.
Can you tell me the environment you tested? macOS version : Xcode version : Unity version : OpenCV for Unity version :
macOS version : 10.14.5 Xcode version : 11.2.1 Unity version : 2019.2.11 OpenCV for Unity version : 2.3.8
Thanks!
On Wed, Jun 10, 2020 at 3:37 PM Enox Software notifications@github.com wrote:
@marimomo00 https://github.com/marimomo00 Thank you very much for reporting.
Can you tell me the environment you tested? macOS version : Xcode version : Unity version : OpenCV for Unity version :
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EnoxSoftware/OpenCVForUnity/issues/40#issuecomment-641794820, or unsubscribe https://github.com/notifications/unsubscribe-auth/APCOC7YVG6PZ2MU7LBG3GQDRV4Z4FANCNFSM4H25JSOA . [image: image.gif]
@marimomo00 "ERROR ITMS-90087: "Unsupported Architectures ." error occurs when the framework contains unwanted Architectures. OpenCVForUnity removes unnecessary Architectures by the RemoveSimulatorArchitectures() method of "Assets/OpenCVForUnity/Ediotr/OpenCVForUnityIOSBuildPostprocessor.cs".
Do you see 'success : Architectures ...' in the UnityEditor console when the iOS project output is complete?
@EnoxSoftware Seem there is an error.
@marimomo00 The opencv2.framework does not seem to exist in the following directories
Did you change the OpenCVForUnity folder location after you imported OpenCVForUnity into your project?
I'm facing the same issue. After building is finished I'm getting this error inside Unity. And it doesn't loads to AppStore because of OpenCV2 signing issue Plugin version 2.3.9 Names, paths etc. wasn't changed, except moving Streaming assets folder as in Readme file. I triedto create an empty project from scratch on Unity 2019.3.13f1, importing ArFoundation with ArKit, OpenCVforUnity, Native camera asset from assetstore, setup basic Ar scene, and don't touch anything else. It won't help. Basically asset works for the development build(direct install from xCode to the device by development provisioning profile) but it totally broken for distribution. i've even tried to move OpenCV2.framework from the Emeded to link binaries and libraries with a required flag, it loads but the application is broken then.
UPD: SOLVED USE MacOS TO BUILD project and not the Windows
I solved this by changing my version of Xcode
I am facing the same issue as @marimomo00. It seems to be because there is an attempt to use the lipo function, which fails when building on Windows.
How can we make it works on Windows? I am using iOS project builder for windows, so I am not using a mac when building for iOS.... I would not want to have to build on mac just to make this code pass. Is there an alternative?
@HaimBendanan When outputting an Xcode project on Windows, RemoveSimulatorArchitectures() method fails. You can manually remove the unnecessary Architectures 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
After removing the unnecessary architecture on macOS, comment out the RemoveSimulatorArchitectures() method in OpenCVForUnityIOSBuildPostprocessor.cs. It will probably succeed in building on windows.
@HaimBendanan When outputting an Xcode project on Windows, RemoveSimulatorArchitectures() method fails. You can manually remove the unnecessary Architectures 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
After removing the unnecessary architecture on macOS, comment out the RemoveSimulatorArchitectures() method in OpenCVForUnityIOSBuildPostprocessor.cs. It will probably succeed in building on windows.
Thanks for the answer! So to make sure I get it, the process would be:
Will that be good? For development and release builds?
@HaimBendanan
Will that be good? For development and release builds? The i386 and x86 architectures are only required if you want to run on iPhone simulator. Otherwise, it works fine.
I have the same error: macOS 11.2.3 Xcode 12.5 Build from Unity 2019.3.14f1 opencv 3.4.11
@EnoxSoftware thanks in advance
@estebanhiguita Is the version of OpenCVForUnity 2.4.4?
I'm sorry this is for opencv 3.4.11 And I solved not importing in xcode
Hi, I have the following issue on MacBook Pro M1, Xcode 14, Unity 2022.2.18f1
ITMS-90087: Unsupported Architectures - The executable for Test.app/Frameworks/opencv2.framework contains unsupported architectures '[x86_64, i386]'.
Also, when I successfully build from Unity, I get this message "success : Architectures in the fat file: libopencvforunity.a are: armv7 armv7s arm64"
I'm using OpenCVForUnity 4.5.2. Thank you for your swift reply.
@CoaNewco Is the Unity you used Unity 2021.2.18f1?
It's 2022.1.19f1 actually.
@CoaNewco The build succeeded without problems in the environment I tried. OpenCVForUnity 2.5.3 Unity 2022.1.19f1 Xcode 14.2
The i386 and x86 architectures are removed in the build script because they are only needed if you want to run on the iPhone simulator. If the following message is displayed, the output to the Xcode project was successful.
OpenCV: 2.4.2 Unity:2021.3.2f1
I can't get success message when build to iOS project.
How can I fix it?
While building it from Mac and unity project exported as flutterios I'm getting this kind of error.. I have added opencv2.framework but still it says not found. Can anyone help!!
Unity Version : 2018.3.4 Xcode: 10.2.1
When i archive and when i want to publish it "Code signing "opencv2.framework" failed".
Please help