使用https://github.com/kewlbear/FFmpeg-iOS-build-script的腳本一鍵編譯ffmpeg。
出現
building arm64...xcrun -sdk iphoneos clang is unable to create an executable file.
輸入
xcodebuild -showsdks
如果出現
error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
說明你的 Xcode命令行工具路徑錯誤
使用
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
</article>