1. ./build-ffmpeg.sh
1
2
3
4
5
6
7
8
xcrun -sdk iphoneos clang is unable to create an executable file.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.

解决方法:

1
sudo xcode-select --switch /Applications/Xcode.app
  1. armv7

https://www.jianshu.com/p/2669370bee23

1
2
3
./libavutil/arm/asm.S:50:9: error: unknown directive
.arch armv7-a
^

删除armv7compile-ffmpeg.sh文件中

1
2
3
FF_ALL_ARCHS_IOS8_SDK="armv7 arm64 i386 x86_64"

改为 FF_ALL_ARCHS_IOS8_SDK="arm64 i386 x86_64"