React native 为什么react native在取消链接后仍然认为我的库已链接?(0.60.x)

React native 为什么react native在取消链接后仍然认为我的库已链接?(0.60.x),react-native,React Native,升级到RN 0.60.x时,我一直看到以下错误消息: error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually: - react-native-localize (to unlink run: "react-native unlink react-native-localize") - react-native-orienta

升级到RN 0.60.x时,我一直看到以下错误消息:

error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:
  - react-native-localize (to unlink run: "react-native unlink react-native-localize")
  - react-native-orientation-locker (to unlink run: "react-native unlink react-native-orientation-locker")
  - react-native-svg (to unlink run: "react-native unlink react-native-svg")
这种情况持续存在,包括按指示取消库的链接,搜索所有项目文件以供参考,以及使用
warn remove
/
warn add


如何成功取消链接并删除此错误消息?

在我的例子中,Podfile中有一些注释掉的Pod引用

React Native似乎无法判断这些行是否已被注释掉:

#  pod 'RNSVG', :path => '../node_modules/react-native-svg'
#  pod 'react-native-orientation-locker', :path => '../node_modules/react-native-orientation-locker'
#  pod 'RNLocalize', :path => '../node_modules/react-native-localize'

解决办法只是完全删除这些线路;这消除了错误。

在我的例子中,Podfile中有一些注释掉的Pod引用

React Native似乎无法判断这些行是否已被注释掉:

#  pod 'RNSVG', :path => '../node_modules/react-native-svg'
#  pod 'react-native-orientation-locker', :path => '../node_modules/react-native-orientation-locker'
#  pod 'RNLocalize', :path => '../node_modules/react-native-localize'
解决办法只是完全删除这些线路;这样就消除了错误