kewlbear / FFmpeg-iOS-build-script

Shell scripts to build FFmpeg for iOS and tvOS
3.03k stars 897 forks source link

invalid sh to build, how to solve the problem? #124

Closed lakehubo closed 6 years ago

lakehubo commented 6 years ago

./build-ffmpeg.sh building arm64... 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 "ffbuild/config.log" produced by configure as this will help solve the problem.

lakehubo commented 6 years ago

this is build log ..... check_ld cc check_cc BEGIN /var/folders/1t/ylg_rg4n5gg5ly8z_6xpwk180000gn/T/ffconf.8seEowVO/test.c 1 int main(void){ return 0; } END /var/folders/1t/ylg_rg4n5gg5ly8z_6xpwk180000gn/T/ffconf.8seEowVO/test.c xcrun -sdk iphoneos clang -arch arm64 -mios-version-min=9.0 -fembed-bitcode -c -o /var/folders/1t/ylg_rg4n5gg5ly8z_6xpwk180000gn/T/ffconf.8seEowVO/test.o /var/folders/1t/ylg_rg4n5gg5ly8z_6xpwk180000gn/T/ffconf.8seEowVO/test.c xcrun: error: SDK "iphoneos" cannot be located xcrun -sdk iphoneos clang -arch arm64 -mios-version-min=9.0 -fembed-bitcode -o /var/folders/1t/ylg_rg4n5gg5ly8z_6xpwk180000gn/T/ffconf.8seEowVO/test /var/folders/1t/ylg_rg4n5gg5ly8z_6xpwk180000gn/T/ffconf.8seEowVO/test.o xcrun: error: SDK "iphoneos" cannot be located ld: warning: ignoring file /usr/lib/libSystem.dylib, missing required architecture arm64 in file /usr/lib/libSystem.dylib (2 slices) ld: dynamic main executables must link with libSystem.dylib for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) C compiler test failed.

kewlbear commented 6 years ago

Have you installed command line tools?

lakehubo commented 6 years ago

you mean i have to installed the command line tools?OK,i will try it.

lakehubo commented 6 years ago

I checked it, i have installed command line tools in Mac.so what can I do to solve the problem?

kewlbear commented 6 years ago

See https://github.com/gomatcha/matcha/issues/6

lakehubo commented 6 years ago

thanks, it works.

lakehubo commented 6 years ago

thanks.it works.because I update Xcode to 9.2 version.than do that in terminal sudo xcode-select --switch /Applications/Xcode.app,the sh it works will.