Open DamonChen117 opened 3 years ago
执行下面的命令就可以了: sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
但是又有新的问题 ./libavutil/arm/asm.S:50:9: error: unknown directive .arch armv7-a ^
通过下面链接解决 armv7 问题 https://blog.csdn.net/qiuchangyong/article/details/100781700
但是执行 xcodebuild -project IJKMediaPlayer.xcodeproj -configuration Release -scheme Universal 时提示 xcodebuild: error: The project named "IJKMediaPlayer" does not contain a scheme named "Universal".
Schemes 只有下面两个没有 Universal:
IJKMediaFramework
IJKMediaFrameworkWithSSL
在k0.8.8分支下没有下面的文件,master 分支有的: ijkplayer/ios/IJKMediaPlayer/IJKMediaPlayer.xcodeproj/xcshareddata/xcschemes/Universal.xcscheme
后来解决了吗,我也遇到了同样的问题 @DamonChen117
iOS 编译失败
==================== [*] check xcode version
FF_ALL_ARCHS = armv7 arm64 i386 x86_64
[*] check host
FF_ARCH=armv7 FF_BUILD_OPT= build_root: /Users/damon/Documents/ijkplayer-ios/ios
[*] check gas-preprocessor
gasp: /Users/damon/Documents/ijkplayer-ios/ios/../extra/gas-preprocessor/gas-preprocessor.pl
[*] config arch armv7
build_name: ffmpeg-armv7 platform: iPhoneOS osversion: -miphoneos-version-min=6.0
[*] make ios toolchain ffmpeg-armv7
build_source: /Users/damon/Documents/ijkplayer-ios/ios/ffmpeg-armv7 build_prefix: /Users/damon/Documents/ijkplayer-ios/ios/build/ffmpeg-armv7/output
[*] configurate ffmpeg
[*] check OpenSSL
[*] configure
config: --disable-gpl --disable-nonfree --enable-runtime-cpudetect --disable-gray --disable-swscale-alpha --disable-programs --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-avdevice --enable-avcodec --enable-avformat --enable-avutil --enable-swresample --enable-swscale --disable-postproc --enable-avfilter --disable-avresample --enable-network --disable-dxva2 --disable-vaapi --disable-vda --disable-vdpau --disable-encoders --disable-hwaccels --disable-muxers --disable-devices --disable-iconv --enable-protocol=async --enable-cross-compile --disable-stripping --arch=armv7 --target-os=darwin --enable-static --disable-shared --enable-pic --enable-neon --enable-optimizations --enable-debug --enable-small --prefix=/Users/damon/Documents/ijkplayer-ios/ios/build/ffmpeg-armv7/output xcrun -sdk iphoneos clang 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.