在按照这篇文章生成framework时,出现了两个错误:
错误一:C compiler test failed
执行./compile-ffmpeg.sh all时报此错误,解决方法:
终端执行这句话sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
然后输入密码,然后再试应该就行了
错误二:have the same architectures (arm64) and can't be in the same fat output file
从Xcode12开始,编译的模拟器静态库也支持了arm64架构,导致真机和模拟器arm64架构重复了,解决方法:
在这里忽略arm64: