简体   繁体   English

如何在 react-native 项目中保存 info.plist 中的更改

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

相关问题 构建 info.plist 属性的问题(React-native IOS) - Problems to build info.plist property (React-native IOS) 如何在弹出的 react-native 应用程序中配置 Info.plist 文件使用 expo sdk - How to configure Info.plist file in ejected react-native app uses expo sdk 如何在 React Native 项目中向 info.plist 动态添加权限键和值? - How do I dynamically add permission keys and values to info.plist in a react native project? Ios react-native 无法部署到应用商店获取 ITMS-90683:Info.plist 中缺少目的字符串 - Ios react-native cant deploy to app store getting ITMS-90683: Missing Purpose String in Info.plist 在react native中编辑后无法保存info.plist - info.plist can not be saved after editing in react native React Native Expo iOS应用程序 - 尝试修改info.plist - React Native Expo iOS app - trying to modify info.plist 将文件添加到 Info.plist WebView React Native 中的 LSApplicationQueriesSchemes - Add file to LSApplicationQueriesSchemes in your Info.plist WebView React Native Xcode项目中的两个info.plist文件如何工作? - How do two info.plist files in Xcode project work? Info.plist和基础本地化:项目未编译 - Info.plist and Base localization: Project not compiling 更新框架项目的info.plist文件 - Updating info.plist file of framework project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM