How to use opencv2 Add ffmpeg to the framework?

Hello, everyone. I read and processed the MJPEG stream of IPCAM using OpenCV on windows. Then I transplanted the program to IOS and downloaded opencv2 Appears after the framework is compiled and executed

OpenCV(4.5.4) /Volumes/build-storage/build/master_ iOS-mac/opencv/modules/videoio/src/cap_ images. cpp:253: error: (-5:Bad argument) CAP_ IMAGES: can’t find starting number (in the name of file): in function ‘icvExtractPattern’

The same message appeared on the window because of the lack of ffmpeg dll
So I recompiled the ffmpeg static function library of IOS and opencv2 framework
But how can I add the ffmpeg library to opencv2 framework ?