tanersener / flutter-ffmpeg

FFmpeg plugin for Flutter. Not maintained anymore. Superseded by FFmpegKit.
GNU Lesser General Public License v3.0
645 stars 132 forks source link

Can't build for iOS #57

Closed lifenautjoe closed 5 years ago

lifenautjoe commented 5 years ago

Description Can't build for iOS

Expected behavior I'm able to build for iOS

Current behavior When running flutter build ios

Building social.openbook.app for device (ios-release)...
Automatically signing iOS for device deployment using specified development team
in Xcode project: GAR7B57RXU
Running pod install...                                              3.1s
Running Xcode build...

Xcode build done.                                            2.6s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:

↳
    === BUILD TARGET Pods-Runner OF PROJECT Pods WITH CONFIGURATION Release ===
    ld: warning: linking against a dylib which is not safe for use in application
    extensions:
    /Users/lifenautjoe/Documents/code/libraries/flutter/bin/cache/artifacts/engine
    /ios-release/Flutter.framework/Flutter
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /gmp.framework/gmp, missing required architecture armv7 in file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /gmp.framework/gmp (3 slices)
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /gnutls.framework/gnutls, missing required architecture armv7 in file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /gnutls.framework/gnutls (3 slices)
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libavcodec.framework/libavcodec, missing required architecture armv7 in file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libavcodec.framework/libavcodec (3 slices)
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libavdevice.framework/libavdevice, missing required architecture armv7 in
    file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libavdevice.framework/libavdevice (3 slices)
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libavfilter.framework/libavfilter, missing required architecture armv7 in
    file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libavfilter.framework/libavfilter (3 slices)
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libavformat.framework/libavformat, missing required architecture armv7 in
    file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libavformat.framework/libavformat (3 slices)
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libavutil.framework/libavutil, missing required architecture armv7 in file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libavutil.framework/libavutil (3 slices)
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libcharset.framework/libcharset, missing required architecture armv7 in file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libcharset.framework/libcharset (3 slices)
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libhogweed.framework/libhogweed, missing required architecture armv7 in file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libhogweed.framework/libhogweed (3 slices)
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libiconv.framework/libiconv, missing required architecture armv7 in file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libiconv.framework/libiconv (3 slices)
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libswresample.framework/libswresample, missing required architecture armv7 in
    file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libswresample.framework/libswresample (3 slices)
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libnettle.framework/libnettle, missing required architecture armv7 in file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libnettle.framework/libnettle (3 slices)
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libswscale.framework/libswscale, missing required architecture armv7 in file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /libswscale.framework/libswscale (3 slices)
    ld: warning: ignoring file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /mobileffmpeg.framework/mobileffmpeg, missing required architecture armv7 in
    file
    /Users/lifenautjoe/Documents/code/okuna/okuna-app/ios/Pods/mobile-ffmpeg-https
    /mobileffmpeg.framework/mobileffmpeg (3 slices)
    Undefined symbols for architecture armv7:
      "_OBJC_CLASS_$_MobileFFmpegConfig", referenced from:
          objc-class-ref in libflutter_ffmpeg.a(FlutterFfmpegPlugin.o)
      "_OBJC_CLASS_$_MobileFFmpeg", referenced from:
          objc-class-ref in libflutter_ffmpeg.a(FlutterFfmpegPlugin.o)
      "_OBJC_CLASS_$_ArchDetect", referenced from:
          objc-class-ref in libflutter_ffmpeg.a(FlutterFfmpegPlugin.o)
    ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see
    invocation)

Environment Flutter doctor

[✓] Flutter (Channel dev, v1.9.7, on Mac OS X 10.14.6 18G84, locale en-NL)
    • Flutter version 1.9.7 at /Users/lifenautjoe/Documents/code/libraries/flutter
    • Framework revision 4984d1a33d (7 days ago), 2019-08-28 17:04:07 -0700
    • Engine revision f52c0b9270
    • Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/lifenautjoe/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-29, build-tools 28.0.3
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2, Build version 10E125
    • CocoaPods version 1.7.5

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 33.4.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.5)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 33.3.2
    • Dart plugin version 183.5912.23

[✓] Connected device (1 available)
    • 🥑 • 1d548d079169fde4d329284ea2448a5b8982eaf3 • ios • iOS 12.4
lifenautjoe commented 5 years ago

Nevermind.. went through a similar issue, related to the LTS version. Sorry.