Xcode 10.1构建错误,未找到-lRNGoogleSignin的库

时间:2018-10-31 14:12:47

标签: xcode react-native

我正在尝试使用xcode构建我的react-native项目,最近我删除了googleSignIn node_module,清理了构建并运行了npm cache verify。我不断收到上述错误。

有什么想法吗?

我正在使用react-native v0.57.0

1 个答案:

答案 0 :(得分:0)

1)检查Xcode libraries和链接的frameworks and libraries中对模块的任何引用

enter image description here enter image description here

并删除它们。

要获得更快的结果,请快速查看ios文件夹并找到文件project.pbxproj,以搜索该文件中的所有引用并将其删除。

2)还要检查pod文件,并确保其中没有对该模块的引用。

注意:

要清理缓存,您可以运行以下命令: rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && rm -rf ios/build && rm -rf node_modules && yarn install && npm start -- --reset-cache

(如果没有纱线,可以使用npm)