react-native-text-input-mask / react-native-text-input-mask

Text input mask for React Native, Android and iOS
MIT License
1.18k stars 305 forks source link

Required a higher minimum deployment target #304

Open Rikka-chan opened 6 months ago

Rikka-chan commented 6 months ago

HI. Could you help me please to solve this problem. I have this error when running pod install

[!] CocoaPods could not find compatible versions for pod "react-native-text-input-mask":
  In Podfile:
    react-native-text-input-mask (from `../node_modules/react-native-text-input-mask`)

Specs satisfying the `react-native-text-input-mask (from `../node_modules/react-native-text-input-mask`)` dependency were found, but they required a higher minimum deployment target.
karimelsaidy commented 6 months ago

same here

badalsaibo commented 6 months ago

Screenshot 2023-11-21 at 12 05 47 PM

Hasanraza786 commented 5 months ago

Is There any update ? on this issue

naldyn commented 5 months ago

Same here

gregSmitt commented 5 months ago

some here

parthkanani93 commented 5 months ago

same issue

akhilsanker commented 4 months ago

same issue any updates?

DimanVorosh commented 4 months ago

Install previous version helped for me Install 3.1.4

BrenoEndymion commented 3 months ago

Same here!

MuhammadBilal164 commented 3 months ago

Go to node_modules > react-native-text-input-mask > react-native-text-input-mask.podspec

change the value of s.platform = :ios,”10.0”

AroldoGoulart commented 2 months ago

As said per @MuhammadBilal164

To resolve this issue, follow these steps:

  1. Navigate to the react-native-text-input-mask directory in your node_modules.
  2. Locate the react-native-text-input-mask.podspec file.
  3. Find the line that specifies the platform version and change it to s.platform = :ios,"10.0".

Captura de Tela 2024-03-14 às 08 39 50

  1. Save the changes.

After making this adjustment, run the following command:

pod install

This will ensure that the changes are applied correctly.

Extra step: Additionally, to automate this fix, you can integrate it with patch-package. Create a post install script in your project to automatically apply the necessary changes during installation. After change the node_modules, just:

Install the patch-package

yarn add patch-package -D

Generate the diff file:

npx patch-package  react-native-text-input-mask
Ruby0771 commented 1 month ago

@AroldoGoulart is right It's helpful.

tahahaz1374 commented 1 week ago

change this line in PodFile

platform :ios, '12.4'

to this

platform :ios, '13.0'

and after that run this command

pod install

worked for me