tanersener / react-native-ffmpeg-test Goto Github PK
View Code? Open in Web Editor NEWTest applications for react-native-ffmpeg. Not maintained anymore. Superseded by FFmpegKitTest.
License: MIT License
Test applications for react-native-ffmpeg. Not maintained anymore. Superseded by FFmpegKitTest.
License: MIT License
When an existing react-native-ffmpeg
application is updated to use react-native 0.60.x
iOS builds fail with the following error.
ld: warning: directory not found for option '-L/Users/taner/Projects/react-native-ffmpeg-test/default/ios/build/ReactNativeFFmpegTest/Build/Products/Debug-iphonesimulator/yoga'
ld: library not found for -lRCTGeolocation
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Android builds also fail with the following error.
2019-07-13 14:40:45.853 4490-4518/com.arthenica.reactnative.ffmpeg.test E/SoLoader: couldn't find DSO to load: libhermes.so
--------- beginning of crash
2019-07-13 14:40:45.854 4490-4518/com.arthenica.reactnative.ffmpeg.test E/AndroidRuntime: FATAL EXCEPTION: create_react_context
Process: com.arthenica.reactnative.ffmpeg.test, PID: 4490
java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:738)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:591)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:529)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:484)
...
When importing RNFFmpeg in js file for android, it throws script error as cannot read property 'enableLogEvents' of undefined.
import { RNFFmpeg } from 'react-native-ffmpeg';
I am trying to run the test on my iphone device, followed the instructions to default package,used the pod file in the instruction, did pod install, pod update for react-native-ffmpeg, and I can build successfully, when I opened my xcode and tried to install it on iphone, it poped up error message:
ExceptionsManager.js:74 Cannot read property 'RNFSFileTypeRegular' of undefined on the device and in the debugger-ui/ browser page, my platform:
react-native info
info
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Memory: 33.32 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.4.0 - /usr/local/bin/node
yarn install v0.15.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 85.19s. - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 27.0.3, 28.0.2
System Images: android-22 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.1 AI-173.4907809
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.8 => 16.8.6
react-native: ^0.59 => 0.59.3
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-cn-richtext-editor: 1.0.33
react-native-git-upgrade: 0.2.7
2019-10-12 22:35:27.135 [info][tid:com.facebook.react.JavaScript] Option ignore_loop not found.
2019-10-12 22:35:27.135475-0400 soundmemes[1707:593973] Option ignore_loop not found.
react-native-ffmpeg-test
won't receive any updates. Please consider switching to FFmpegKit and FFmpegKitTest.
FFmpegKit
supersedes react-native-ffmpeg
. It has a very similar API. See ReactNativeFFmpeg to FFmpegKit Migration Guide.
Any idea why I'm getting this on all dependency management mechanisms.
Before I start each mechanism I run
yarn install
cd ios/
pod install
Also tried after that to do
react-native unlink react-native-ffmpeg
pod install
Then run it with either react-native run-ios or just inside xcode and always get this.
manual-dependency react-native run-ios
Scanning folders for symlinks in /Users/ingvi/Downloads/react-native-ffmpeg-test-master/manual-dependency/node_modules (17ms)
Found Xcode workspace ReactNativeFFmpegManualDependencyTest.xcworkspace
Building using "xcodebuild -workspace ReactNativeFFmpegManualDependencyTest.xcworkspace -configuration Debug -scheme ReactNativeFFmpegManualDependencyTest -destination id=82D4B6BB-BFFD-4B05-B225-A7EBF9DC216C -derivedDataPath build"
User defaults from command line:
IDEDerivedDataPathOverride = /Users/ingvi/Downloads/react-native-ffmpeg-test-master/manual-dependency/ios/build
note: Using new build system
note: Planning build
note: Constructing build description
Build system information
error: /Users/ingvi/Downloads/react-native-ffmpeg-test-master/manual-dependency/ios/Pods/Pods/Target Support Files/Pods-ReactNativeFFmpegManualDependencyTest/Pods-ReactNativeFFmpegManualDependencyTest.debug.xcconfig: unable to open file (in target "ReactNativeFFmpegManualDependencyTest" in project "ReactNativeFFmpegManualDependencyTest") (in target 'ReactNativeFFmpegManualDependencyTest')
Build system information
error: /Users/ingvi/Downloads/react-native-ffmpeg-test-master/manual-dependency/ios/Pods/Pods/Target Support Files/Pods-ReactNativeFFmpegManualDependencyTest/Pods-ReactNativeFFmpegManualDependencyTest.debug.xcconfig: unable to open file (in target "ReactNativeFFmpegManualDependencyTest" in project "ReactNativeFFmpegManualDependencyTest") (in target 'ReactNativeFFmpegManualDependencyTest')
Build system information
error: /Users/ingvi/Downloads/react-native-ffmpeg-test-master/manual-dependency/ios/Pods/Pods/Target Support Files/Pods-ReactNativeFFmpegManualDependencyTest/Pods-ReactNativeFFmpegManualDependencyTest.debug.xcconfig: unable to open file (in target "ReactNativeFFmpegManualDependencyTest" in project "ReactNativeFFmpegManualDependencyTest") (in target 'ReactNativeFFmpegManualDependencyTest')
Build system information
error: /Users/ingvi/Downloads/react-native-ffmpeg-test-master/manual-dependency/ios/Pods/Pods/Target Support Files/Pods-ReactNativeFFmpegManualDependencyTest/Pods-ReactNativeFFmpegManualDependencyTest.debug.xcconfig: unable to open file (in target "ReactNativeFFmpegManualDependencyTest" in project "ReactNativeFFmpegManualDependencyTest") (in target 'ReactNativeFFmpegManualDependencyTest')
Build system information
warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RNFS')
** BUILD FAILED **
Installing build/Build/Products/Debug-iphonesimulator/ReactNativeFFmpegManualDependencyTest.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/ReactNativeFFmpegManualDependencyTest.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
I got the app build and installed on my iphone device, it works when I use -version command, but when I switched to VIDEO tab and tap on CREATE button, it showed a message saying:
/var/containers/Bundle/Application/DF534C28-4412-4F59-AB33-9B486C4DAB86/ReactNativeFFmpegTest.app/colosseum.jpg: No such file or directory.
also in my console log, I saw the jpg files saved:
Saved resource colosseum.jpg to /var/containers/Bundle/Application/DF534C28-4412-4F59-AB33-9B486C4DAB86/ReactNativeFFmpegTest.app/colosseum.jpg
Main.js:285 Saved resource pyramid.jpg to /var/containers/Bundle/Application/DF534C28-4412-4F59-AB33-9B486C4DAB86/ReactNativeFFmpegTest.app/pyramid.jpg
Main.js:288 Saved resource tajmahal.jpg to /var/containers/Bundle/Application/DF534C28-4412-4F59-AB33-9B486C4DAB86/ReactNativeFFmpegTest.app/tajmahal.jpg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.