Bundle Display Name in iPhone

我与影子孤独终老i 提交于 2019-12-11 12:36:26

问题


Is it possible to modify the BundleDisplay name at runtime ???

Thanks


回答1:


I'd be really surprised if you could, since doing so would require you to edit the Info.plist file, which is in a write-protected directory. Even if you could modify it, it would cause the code signature to no longer match the application bundle, and the app would refuse to launch.

The closest you can get to using a different display name is to provide localized versions of it.




回答2:


If you set the Bundle Display Name to a variable ie ${MY_BUNDLE_DISPLAY_NAME} and make sure that gets set in your build phases or from your ENV, or from an XCCONFIG file when building from the command line, the name should be replaced with what you set it with.



来源:https://stackoverflow.com/questions/1768472/bundle-display-name-in-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!