How can I combine two different dylib into a simple one?

Hi,

I am trying to build ffmpeg for Intel and M1 platform for my application.

I got some problem, because when I put arm64 dylibs I got error that no x86_64 dylibs available. And I got arm64 dylibs not available when I put x86_64 dylibs.

Can I combine these two set of dylibs into a single one then I don't need to change the dylibs on different platform?

XCFramework or ??

Thank you.

Eric

I have done this by lipo command such as

lipo -create ./dylib_intel/libavcodec.58.dylib ./dylib_arm/libavcodec.58.dylib -output ./dylib_universal/libavcodec.58.dylib

How can I combine two different dylib into a simple one?
 
 
Q