shahen94 / react-native-video-processing

Native Video editing/trimming/compressing :movie_camera: library for React-Native
https://shahen94.github.io/react-native-video-processing/
MIT License
1.25k stars 326 forks source link

iOS: More than 34 errors when I tried to build the app on iOS after finishing all the steps #276

Open esmatnawahda1 opened 4 years ago

esmatnawahda1 commented 4 years ago

Current Behavior

I'm working on a new app and stuck with this library. I'm using this library to get a preview of the video before uploading to the storage, and it is working fine on android, but on iOS, I followed the instructions and got a lot of errors after cleaning and building the project.

Some of the errors: 'kCMTimeZero' has been renamed to 'CMTime.zero' Missing argument labels 'value:timescale:' in call 'AVFileTypeMPEG4' has been renamed to 'AVFileType.mp4' and more

Expected Behavior

It should work as @shahen94 explained in the instructions.

Your Environment

software version
react-native-video-processing 1.20.0
react-native 0.61.5
react 16.9.0
node 10.16.0
xlogix commented 4 years ago

I'm using React Native 0.59.10 & Xcode 11.3.1 and the only way I was able to make it work was by directly including the two projects like this.

Screenshot 2020-04-18 at 5 19 16 PM

Also, you'll have to comment 'resize mode' object and props. Just comment out the changes done here: https://github.com/shahen94/react-native-video-processing/pull/240/commits/68eefa82f76bd8e84825746e3ba3f1cbdec68850

n-sviridenko commented 4 years ago

@xlogix I'm having this issue when following this approach:

File (1)

RN 60:

    "expo": "^36.0.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz",
xlogix commented 4 years ago

@n-sviridenko Use this repo's code: https://github.com/xlogix/react-native-video-processing

Adigezalov commented 4 years ago

@xlogix I do everything as indicated in the instructions and in this issues, but I get 61 errors

react-native-video-processing | 1.20.0 react-native | 0.61.4 Xcode | 11.4.1

chris-chao commented 2 years ago

@xlogix I'm having this issue when following this approach:

File (1)

RN 60:

    "expo": "^36.0.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz",

Are you running a Managed Expo project? Were you able to get it working?