coremediaio-dal-minimal-example icon indicating copy to clipboard operation
coremediaio-dal-minimal-example copied to clipboard

Missing compatible arch even though compatible arch is there.

Open objectivecosta opened this issue 4 years ago • 4 comments

Hello, everyone.

I'm receiving this weird "incompatible architecture" error when I look at the console:

Error loading /Library/CoreMediaIO/Plug-Ins/DAL/CMIOMinimalSample.plugin/Contents/MacOS/CMIOMinimalSample: dlopen(/Library/CoreMediaIO/Plug-Ins/DAL/CMIOMinimalSample.plugin/Contents/MacOS/CMIOMinimalSample, 0x0106): missing compatible arch in /Library/CoreMediaIO/Plug-Ins/DAL/CMIOMinimalSample.plugin/Contents/MacOS/CMIOMinimalSample

However, when I run lipo -info on the file, I get:

Architectures in the fat file: CMIOMinimalSample.plugin/Contents/MacOS/CMIOMinimalSample are: x86_64 arm64

Which should cover all arches supported by macOS.

Anyone ever encounter anything similar? I've tried chowning the entire .plugin to be root owned and 777 permissions, but to no avail.

objectivecosta avatar Feb 19 '21 17:02 objectivecosta

To anyone experiencing this: on ARM MacBooks, I'm not getting the usual library validation errors, but it appears to be just that. Trying on a custom-wrote software using dlopen to open the library inside the plugin, it gave a more correct error message and testing on x86 confirmed that this was the issue.

Does this merit an update to the README? I'd be up to writing and PR-ing it @johnboiles

objectivecosta avatar Feb 20 '21 18:02 objectivecosta

I have the same issue, plugin can not be loaded in arm64 Mac, can any one help?

goldscu avatar Mar 22 '21 09:03 goldscu

I compiled (PTPWebcam)[https://ptpwebcam.org] for my M1 Mac Mini and run into this Issue as well. I can only say that it fixed itself (aside of the usually validation issue) after I change some Xcode settings. I change the build mode to "Any Mac" and compiled in Release mode instead of Debug the console started to show the validation error instead of the arch error. Maybe try this here as well.

Foxei avatar May 25 '21 19:05 Foxei

@objectivecosta is this still a thing? I've been able to run universal builds for virtual cameras without issue. I'm def open to adding more stuff to the README to help people with gotchas. What exactly would you add?

johnboiles avatar Oct 26 '21 18:10 johnboiles