[英]How to save changes in info.plist in react-native project
I use react-native '0.62.2' and i have some changes that i need to save in 'info.plist'.我使用 react-native '0.62.2' 我有一些更改需要保存在 'info.plist' 中。
My problem is when i do pod install all the changes are discard.我的问题是当我做 pod install 时,所有的更改都被丢弃了。
I would like to know if there some solution for this situation.我想知道这种情况是否有解决方案。
I know that with 'node_modules' this npm package can help so i wonder if there is some thing for info.plist too.我知道使用“node_modules”这个npm package 可以提供帮助,所以我想知道 info.plist 是否也有一些东西。
Thank you in advance.先感谢您。
So you are probably changing an info.plist file of one of your pods (ie inside your pod folder) instead of the one for your project.因此,您可能正在更改您的一个 pod(即在您的 pod 文件夹中)的 info.plist 文件,而不是您项目的那个。
Go to the ios folder, your project folder, and there is the info.plist for your project. Go 到 ios 文件夹,你的项目文件夹,还有你项目的 info.plist。
It may be easier to edit if you open xcode and edit it there.如果你打开 xcode 并在那里编辑它可能更容易编辑。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.