react-native-video-trim icon indicating copy to clipboard operation
react-native-video-trim copied to clipboard

[!] CocoaPods could not find compatible versions for pod "ffmpeg-kit-ios-min"

Open mguerrero-exe opened this issue 1 year ago • 6 comments

I got this error in IOS when try to install pods:

[!] CocoaPods could not find compatible versions for pod "ffmpeg-kit-ios-min":
  In Podfile:
    react-native-video-trim (from ../node_modules/react-native-video-trim) was resolved to 1.0.16, which depends on
      ffmpeg-kit-ios-min (~> 6.0)

Specs satisfying the ffmpeg-kit-ios-min (~> 6.0) dependency were found, but they required a higher minimum deployment target.

I don't use any FFMPEG kit, so the one that comes with the default trimmer library is the one that is in use.

mguerrero-exe avatar Feb 29 '24 23:02 mguerrero-exe

it supports iOS 12.1 or later, please update your deployment target

maitrungduc1410 avatar Mar 01 '24 07:03 maitrungduc1410

My deployment target is 12.4

mguerrero-exe avatar Mar 01 '24 13:03 mguerrero-exe

make sure you have set it all required places:

Screenshot 2024-03-01 at 9 47 32 PM Screenshot 2024-03-01 at 9 47 15 PM

maitrungduc1410 avatar Mar 01 '24 13:03 maitrungduc1410

The 'Pods-demo_app' target has frameworks with conflicting names: ffmpegkit.xcframework, libavcodec.xcframework, libavdevice.xcframework, libavfilter.xcframework, libavformat.xcframework, libavutil.xcframework, libswresample.xcframework, and libswscale.xcframework.

when using ffmpeg-kit-react-native

c-info avatar May 13 '24 06:05 c-info

@c-info I'll check this and get back to you

maitrungduc1410 avatar May 13 '24 07:05 maitrungduc1410

Hi guys, according to ffmpegkit-react-native, for iOS it's using ffmpegkit-https, version = 6.0

Therefore when running pod install you need to do this (setting 2 extras ENV):

FFMPEGKIT_PACKAGE=https FFMPEGKIT_PACKAGE_VERSION=6.0 pod install

maitrungduc1410 avatar May 13 '24 16:05 maitrungduc1410

I'm facing the same issue, any clue how to fix it?

Thanks!

ymhmd avatar Jun 05 '24 08:06 ymhmd

I'm facing the same issue, any clue how to fix it?

Thanks!

hi, can you try update your Deployment Target?

maitrungduc1410 avatar Jul 13 '24 16:07 maitrungduc1410

Hi package builds alright on my ios device locally when I do pod install with the command you gave FFMPEGKIT_PACKAGE=https FFMPEGKIT_PACKAGE_VERSION=6.0 pod install but on app center when I'm trying to build for production I get this error [!] The 'Pods-app' target has frameworks with conflicting names: ffmpegkit.xcframework, libavcodec.xcframework, libavdevice.xcframework, libavfilter.xcframework, libavformat.xcframework, libavutil.xcframework, libswresample.xcframework, and libswscale.xcframework.

is there any suggestion to by-pass this in my production environment in appcenter?

benjamin-luupli avatar Aug 29 '24 17:08 benjamin-luupli

Added instruction how to solve this issue in README

maitrungduc1410 avatar Sep 01 '24 03:09 maitrungduc1410

Anyone also getting stuck on readme for iOS this worked for me

FFMPEGKIT_PACKAGE=https pod install

LianVyv avatar Sep 01 '24 10:09 LianVyv

@maitrungduc1410 I want to use full-gpl which works fine on Android for me.

But on iOS i'm struggling with this compatible version issue as I understand your README it says I just need to set my package to full-gpl and then set the version and specify the version 6.0 but cocoapods still complains

Could you maybe tell me what I'm doing wrong?

Deployment target is set to 13.4

This is my final code I was running

FFMPEGKIT_PACKAGE=full-gpl FFMPEGKIT_PACKAGE_VERSION=6.0 pod install

Then my error

Installing ffmpeg-kit-ios-full-gpl (6.0)
Installing react-native-video-trim 2.2.1
[!] The 'Pods-myapp' target has frameworks with conflicting names: ffmpegkit.xcframework, libavcodec.xcframework, libavdevice.xcframework, libavfilter.xcframework, libavformat.xcframework, libavutil.xcframework, libswresample.xcframework, and libswscale.xcframework.

LianVyv avatar Sep 01 '24 12:09 LianVyv

@maitrungduc1410 I now understood my issue after looking at what they did https://www.npmjs.com/package/ffmpeg-kit-react-native all I needed was to also add the version I wanted to my podfile.

I have improved the message for iOS incase others get confused with the PR: https://github.com/maitrungduc1410/react-native-video-trim/pull/68

LianVyv avatar Sep 01 '24 17:09 LianVyv