0

react-native link命令在我第一次安装npm依赖项时正常工作。

在调试期间,我手动删除了 iOS 项目中的 Libraries 和 Frameworks 文件夹的内容,此后该react-native link命令无法再次链接它们。

我的库和框架文件夹是空的:

未链接的库和框架

Project Settings > Target > Build Phases的也是空的,只有一些来自 Pod 的进口。具体Link Binary With LibrariesEmbed Frameworks阶段。

但是,该react-native link命令返回成功:

$ react-native link
warn The following packages use deprecated "rnpm" config that will stop working from next release:
  - rn-fetch-blob: https://github.com/joltup/rn-fetch-blob#readme
Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
info Linking assets to ios project
info Linking assets to android project
success Assets have been successfully linked to your project

似乎是一个缓存问题,但不确定在哪里清理它的缓存。

4

0 回答 0