问题1: Solution:iOS "./compile-ffmpeg.sh all" error"xcrun -sdk iphoneos clang is unable to create an execut:
First
1)check your Git version
2)make sure you are using the lastest version from Git
Second
1)find "ffmpeg-armv7/ffbuild/config.log" search the detail error with keyword like "xcrun: error"
2)my case,found the detail "xcrun: error: SDK "iphoneos" cannot be located"
Third
1)terminal input "sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/"
2)input password
3)try again
问题2:
When ./compile-ffmpeg.sh all , It will get below error.
CC libavcodec/aac_parser.o
clang: warning: optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument]
CC libavcodec/aacadtsdec.o
解决方案:
In iOS devices, armv7 means iPhone 4 or iPad 1 and so on, armv7s meas iPhone 5 and so on, all it's 32 bit device. And Apple has required all apps should run on 64 bit.
So I just compiled arm64 and armv7s. The iPhone 4 or iPhone 5 is too old for our apps or Foundation/UIKit API.
If there's any mistake or any better solution, please tell me.
I do same thing like you.
I remove the armv7 in compile-ffmpeg.sh
FF_ALL_ARCHS_IOS8_SDK="arm64 i386 x86_64"
Thanks for your reply.
网友评论