[英]react-native clean cache in xcode ios
I'm trying to install react-native-mixpanel in my app react-native v0.49. 我正在尝试在我的应用程序react-native v0.49中安装react-native-mixpanel。 when I compile it in android it works fine but in ios with xcode it shows me
当我在android中编译它时,它工作正常,但是在带有xcode的ios中,它向我显示了
ld: library not found for -lRNMixpanel-tvOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)
so I decided to delete the plugin with commands: 所以我决定用以下命令删除插件:
react-native unlink react-native-mixpanel
npm uninstall react-native-mixpanel
then i run npm install again. 然后我再次运行npm install。
I don't see the plugin anymore in package.json. 我在package.json中不再看到该插件。
in addition I delete any keyword in xcode settings with the word mixpanel but I still get the same error. 此外,我删除了xcode设置中带有mixpanel单词的任何关键字,但仍然收到相同的错误。
ld: library not found for -lRNMixpanel-tvOS
anyone to clean the cache or solve this issue? 有人清理缓存或解决此问题? thanks
谢谢
I think i hit some simillar issue a few days ago on RN 49.3, the problem was caused by some misplaced import (i'm not sure), and for how i solved, it was by removing the library from Build phase-> Link Binary with libraries 我想我几天前在RN 49.3上遇到了一些类似的问题,问题是由于某些导入错误(我不确定)而引起的,而我的解决方法是,从Build phase-> Link Binary中删除该库与图书馆
and for Cleaning cache in xcode the shortcut is (Cmd + k). 对于在xcode中清理缓存,快捷方式是(Cmd + k)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.