douglasjunior / react-native-keyboard-manager

⚛ Library to prevent issues of keyboard sliding up and cover inputs on React-Native iOS projects.
https://www.npmjs.com/package/react-native-keyboard-manager
MIT License
971 stars 59 forks source link

Incompatibility with RN 0.74.1 #110

Closed Daniel3711997 closed 6 months ago

Daniel3711997 commented 7 months ago

The error:

Target 'AppName' (project 'ProjectName') has copy command from '/Users/USERNAME/Documents/projects/PROJECT/ios/PROJECT/PrivacyInfo.xcprivacy' to '/Users/USERNAME/Library/Developer/Xcode/DerivedData/PROJECT-gxjbrfjixsucspftqxzmnoqyuqyt/Build/Intermediates.noindex/ArchiveIntermediates/PROJECT/InstallationBuildProductsLocation/Applications/PROJECT.app/PrivacyInfo.xcprivacy'

ALSO added the pod: pod 'IQKeyboardManagerSwift', :git => 'https://github.com/douglasjunior/IQKeyboardManager.git', :branch => 'react-native-keyboard-manager'

This looks to be the same problem like: https://github.com/react-native-async-storage/async-storage/issues/1085

douglasjunior commented 7 months ago

I think that this is a problem with the RN cocoapods script (changed in this commit https://github.com/facebook/react-native/commit/4be1fafec8edca5da5ebe515ad359d4178db7d23) that copy the PrivacyInfo to the .app executable, because in version 0.74.0 works fine.

Take a look at the Sample project

douglasjunior commented 7 months ago

Let's wait for version 0.74 to become stable to analyze the problem more closely.

douglasjunior commented 6 months ago

I found and fix an issue with the IQKeyboardManagerSwift fork, please run this command and try it again:

cd ios
pod update IQKeyboardManagerSwift

Make sure to keep the pod in Podfile:

pod 'IQKeyboardManagerSwift', :git => 'https://github.com/douglasjunior/IQKeyboardManager.git', :branch => 'react-native-keyboard-manager'
Daniel3711997 commented 6 months ago

Solved, thank you