1. 程式人生 > >ios編譯ffmpeg出現xcrun -sdk iphoneos clang is unable to create an executable file的解決方法

ios編譯ffmpeg出現xcrun -sdk iphoneos clang is unable to create an executable file的解決方法

使用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/

問題解決