Closed alex-chou9 closed 10 months ago
(1) Tried upgrade nasm from 2.15.05 to 2.16.01. Same. Still not able to run on simulator.
(2) Tried adding "--disable-asm" to CONFIGURE_FLAGS in build-ffmpeg.sh, then it will work on the simulator. But this is not ideal, as adding this flag will have negative performance impact on real iOS device and simulator.
I managed to get a MacOS 11.6 with Xcode 13.1, and got the .a static libraries that can run on both real iPhone & simulator.
Host Environment: MacOS 14.0 (Intel x86_64), Xcode 15.0.1
./build-ffmpeg.sh arm64 x86_64
it runs great on real iOS devices, but on Xcode simulator there are link errors.
I guess it has something to do with x86 assembler, because all of these problematic files are located in the ffmpeg/libxxxx/x86 folders.
Furthermore, (1)
(2) the static library files generated in the folder FFmpeg-iOS-build-script-master/thin/x86_64 is significantly smaller than in FFmpeg-iOS-build-script-master/thin/arm64 libavcodec.a is 41.5MB(arm64)/ 18.7MB(x86_64) libavdevice.a is 159KB(arm64)/ 55KB(x86_64) libavfilter.a is 11.4MB(arm64)/ 4.8MB(x86_64) libavformat.a is 11.1MB(arm64)/ 3.5MB(x86_64)
But I don't know how to solve it...