error : libmediapipe_c.dylib: mach-o, but wrong architecture
See original GitHub issuePlugin Version or Commit ID
adb2d90
Unity Version
2021.3.6f1 (Apple Silicon)
Your Host OS
M1 Mac
Target Platform
iOS
[Windows Only] Visual Studio C++ and Windows SDK Version
No response
[Linux Only] GCC/G++ and GLIBC Version
No response
[Android Only] Android Build Tools and NDK Version
No response
[iOS Only] XCode Version
XCode 13.2
Command Sequences
First, DIINotFoundException: mediapipe_c assembly
error occurred.
so, I followed this issue(#640), but libmediapipe_c.dylib: mach-o, but wrong architecture
occurs.
I entered the commands below in order
python build.py build --desktop cpu --opencv cmake -vv
python3 build.py build --desktop cpu --ios arm64 -vv
Pleas help me.
Log
Plugins: Couldn’t open /Users/yechanjeon/MediaPipeUnityPlugin-master/Packages/com.github.homuler.mediapipe/Runtime/Plugins/libmediapipe_c.dylib, error: dlopen(/Users/yechanjeon/MediaPipeUnityPlugin-master/Packages/com.github.homuler.mediapipe/Runtime/Plugins/libmediapipe_c.dylib, 2): no suitable image found. Did find: /Users/yechanjeon/MediaPipeUnityPlugin-master/Packages/com.github.homuler.mediapipe/Runtime/Plugins/libmediapipe_c.dylib: mach-o, but wrong architecture /Users/yechanjeon/MediaPipeUnityPlugin-master/Packages/com.github.homuler.mediapipe/Runtime/Plugins/libmediapipe_c.dylib: mach-o, but wrong architecture
Additional Context
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Good. I guess the cause is one of the followings:
python3
is an alias to an x86-64 Python executable (and started with Rosetta).lipo -archs Packages/com.github.homuler.mediapipe/Runtime/Plugins/libmediapipe_c.dylib
libmediapipe_c.dylib
was broken.The build was finally successful when i entered
python3 build.py build --desktop cpu --opencv cmake --macos_universal --ios arm64 -vv
! Thank you. Thank you for the pre-built package introduction.