Objective c 从代码中隐藏设置包选项
在我的应用程序中,我在Objective c 从代码中隐藏设置包选项,objective-c,ios,settings.bundle,Objective C,Ios,Settings.bundle,在我的应用程序中,我在Settings.bundle中定义了一个仅用于调试目的的选项 是否有一种方法可以在应用程序处于生产状态时对代码隐藏此选项,而无需手动从Settings.bundle/Root.plist中删除此选项 类似于: #ifdef DEBUG // Remove the option from the settings bundle #else // Show the option in (or don't actually remove the option from)
Settings.bundle
中定义了一个仅用于调试目的的选项
是否有一种方法可以在应用程序处于生产状态时对代码隐藏此选项,而无需手动从Settings.bundle/Root.plist
中删除此选项
类似于:
#ifdef DEBUG
// Remove the option from the settings bundle
#else
// Show the option in (or don't actually remove the option from) the settings bundle
#endif
谢谢大家! 我几乎可以肯定没有办法做到这一点。有几种选择:
- 使用带有特殊Settings.bundle的单独开发目标
- 在单个目标的构建阶段使用
修改Settings.bundle添加运行脚本
配置的部分,检查调试
变量配置