简体   繁体   English

Xcode iOS中的本机干净缓存

[英]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.

相关问题 了解 Testflight 崩溃报告 (iOS / React-Native / XCode) - Understanding a Testflight Crash Report (iOS / React-Native / XCode) React-native iOS 应用程序未在终端上运行,Xcode 也 - React-native iOS app not running on terminal and Xcode also 如何在没有 xcode 的情况下禁用 react-native ios 中的应用轮换? - How to disable app rotation in react-native ios without xcode? React Native:没有日志出现在 Xcode 和 react-native run-ios 中会抛出奇怪的错误 - React Native: No logs showing up in Xcode and react-native run-ios throws weird error React Native:你能强制 react-native run-ios 使用不同的 XCode 安装吗? - React Native: Can you force react-native run-ios to use a different installation of XCode? React Native:使用 Xcode 与`react-native run-ios` 运行应用程序有什么区别? - React Native: What is the difference between running app with Xcode vs `react-native run-ios`? React-Native fetch API积极缓存 - React-Native fetch API aggressive cache React-Native“ react-native run-ios” - React-Native “react-native run-ios” 在iOS应用程序中嵌入多个捆绑的本机应用程序的缓存问题 - Cache issues embedding multiple bundled react-native applications in iOS application react-native ios,如何在内存不足的情况下从缓存中释放本地图像? - react-native ios, how to release local images from cache in low memory scenario?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM