tanersener / react-native-ffmpeg

FFmpeg for react-native. Not maintained anymore. Superseded by FFmpegKit.
GNU General Public License v3.0
401 stars 52 forks source link

ld: framework not found expat.xcframework #157

Closed NickBusey closed 4 years ago

NickBusey commented 4 years ago

Description

Trying to use this library through the react-native-ffmpeg library and am getting this error when trying to build it.

Logs

yarn run ios
.....

Ld /Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/quikvid.app/quikvid normal x86_64 (in target 'QuikVid' from project 'QuikVid')
    cd /Users/nick/Code/QuikVid/ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios13.2-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/DoubleConversion -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/EXConstants -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/EXErrorRecovery -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/EXFileSystem -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/EXFont -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/EXImageLoader -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/EXKeepAwake -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/EXLinearGradient -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/EXLocation -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/EXPermissions -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/EXSQLite -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/EXUpdates -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/EXWebBrowser -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/FBReactNativeSpec -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/Folly -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/RCTTypeSafety -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/RNCMaskedView -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/RNGestureHandler -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/RNOS -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/RNReanimated -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/RNScreens -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-Core -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-CoreModules -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-RCTActionSheet -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-RCTAnimation -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-RCTBlob -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-RCTImage -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-RCTLinking -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-RCTNetwork -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-RCTSettings -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-RCTText -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-RCTVibration -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-cxxreact -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-jsi -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-jsiexecutor -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/React-jsinspector -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/ReactCommon -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/TcpSockets -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/UMAppLoader -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/UMCore -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/UMPermissionsInterface -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/UMReactNativeAdapter -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/Yoga -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/glog -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/react-native-ffmpeg -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/react-native-randombytes -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/react-native-safe-area-context -L/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/react-native-udp -F/Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator -F/Users/nick/Code/QuikVid/ios/Pods/mobile-ffmpeg-full -F/Users/nick/Code/QuikVid/ios/Pods/mobile-ffmpeg-https -filelist /Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Intermediates.noindex/QuikVid.build/Debug-iphonesimulator/QuikVid.build/Objects-normal/x86_64/quikvid.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -object_path_lto -Xlinker /Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Intermediates.noindex/QuikVid.build/Debug-iphonesimulator/QuikVid.build/Objects-normal/x86_64/quikvid_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lDoubleConversion -lEXConstants -lEXErrorRecovery -lEXFileSystem -lEXFont -lEXImageLoader -lEXKeepAwake -lEXLinearGradient -lEXLocation -lEXPermissions -lEXSQLite -lEXUpdates -lEXWebBrowser -lFBReactNativeSpec -lFolly -lRCTTypeSafety -lRNCMaskedView -lRNGestureHandler -lRNOS -lRNReanimated -lRNScreens -lReact-Core -lReact-CoreModules -lReact-RCTActionSheet -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReactCommon -lTcpSockets -lUMAppLoader -lUMCore -lUMPermissionsInterface -lUMReactNativeAdapter -lYoga -lbz2 -lc++ -lglog -liconv -lreact-native-ffmpeg -lreact-native-randombytes -lreact-native-safe-area-context -lreact-native-udp -lstdc++ -lz -framework AVFoundation -framework AudioToolbox -framework CoreMedia -framework JavaScriptCore -framework VideoToolbox -framework expat.xcframework -framework fontconfig.xcframework -framework freetype.xcframework -framework fribidi.xcframework -framework giflib.xcframework -framework gmp -framework gmp.xcframework -framework gnutls -framework gnutls.xcframework -framework jpeg.xcframework -framework kvazaar.xcframework -framework lame.xcframework -framework libaom.xcframework -framework libass.xcframework -framework libavcodec -framework libavcodec.xcframework -framework libavdevice -framework libavdevice.xcframework -framework libavfilter -framework libavfilter.xcframework -framework libavformat -framework libavformat.xcframework -framework libavutil -framework libavutil.xcframework -framework libhogweed -framework libhogweed.xcframework -framework libilbc.xcframework -framework libnettle -framework libnettle.xcframework -framework libogg.xcframework -framework libopencore-amrnb.xcframework -framework libopencore-amrwb.xcframework -framework libpng.xcframework -framework libsndfile.xcframework -framework libswresample -framework libswresample.xcframework -framework libswscale -framework libswscale.xcframework -framework libtheora.xcframework -framework libtheoradec.xcframework -framework libtheoraenc.xcframework -framework libvorbis.xcframework -framework libvorbisenc.xcframework -framework libvorbisfile.xcframework -framework libvpx.xcframework -framework libwebp.xcframework -framework libwebpdemux.xcframework -framework libwebpmux.xcframework -framework libxml2.xcframework -framework mobileffmpeg -framework mobileffmpeg.xcframework -framework opus.xcframework -framework shine.xcframework -framework snappy.xcframework -framework soxr.xcframework -framework speex.xcframework -framework tiff.xcframework -framework twolame.xcframework -framework wavpack.xcframework -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Intermediates.noindex/QuikVid.build/Debug-iphonesimulator/QuikVid.build/quikvid.app-Simulated.xcent -lPods-QuikVid -Xlinker -dependency_info -Xlinker /Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Intermediates.noindex/QuikVid.build/Debug-iphonesimulator/QuikVid.build/Objects-normal/x86_64/quikvid_dependency_info.dat -o /Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/quikvid.app/quikvid
ld: framework not found expat.xcframework
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

The following build commands failed:
        Ld /Users/nick/Library/Developer/Xcode/DerivedData/QuikVid-besltckxxdhmcactkggkgxxrleno/Build/Products/Debug-iphonesimulator/quikvid.app/quikvid normal x86_64
(1 failure)

Environment

tanersener commented 4 years ago

Your cocoapods version is too old. Can you update it to 1.9.x? You're using the new version of the parent mobile-ffmpeg library, v4.3.2, which uses XCFrameworks. cocoapods does not support XCFrameworks until the v1.9.x.

NickBusey commented 4 years ago

Updating to 1.9.x fixed this issue. Thank you.