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

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

[!] No podspec found for `RNInputMask` in `../node_modules/react-native-text-input-mask` #214

Closed guisszo closed 3 years ago

guisszo commented 3 years ago

In react native "0.63.3" when i upgrade "react-native-text-input-mask" from 2.0.0 to 3.1.4 i got this error:

[!] No podspec found for `RNInputMask` in `../node_modules/react-native-text-input-mask

i think this is due to the directory "InputMask" present in ../node_modules/react-native-text-input-mask/ios/InputMask in version 2.0.0 which is not in the latest version but when i downgrade again it works fine;

VashaMasha commented 3 years ago

Hello! I've got the same problem, but I have to use version > 3.0.0. So, resolving the issue by downgrading the version is not valid))) How can i manage this problem without version changing?

dustinyoste commented 3 years ago

Remove pod 'RNInputMask', :path => '../node_modules/react-native-text-input-mask/ios/InputMask' from ios/Podfile and run npx pod-install from ios/

If upgrading from 2.0.0 you may need to add ENV['SWIFT_VERSION'] = '5.0' to the top of your Podfile or add a .swift file to your project. (https://github.com/kiwi-bop/flutter_crashlytics/issues/22) https://github.com/react-native-text-input-mask/react-native-text-input-mask/issues/215

https://github.com/react-native-text-input-mask/react-native-text-input-mask/compare/v2.0.0...v3.1.4

guisszo commented 3 years ago

yes @dustinyoste i removed pod 'RNInputMask', :path => '../node_modules/react-native-text-input-mask/ios/InputMask' and added that: pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text', :modular_headers => true to my pod file and it is working fine now !! thank you very much