加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

如何更改iOS应用程序的DisplayName?

发布时间:2020-12-14 17:56:51 所属栏目:百科 来源:网络整理
导读:我知道有很多与我的问题有关的答案,比如说. Programmatically rename an XCode project Renaming xcode 4 project and the actual folder 等等 但请看下面的代码: NSString *plistPath = @"...../TestingAPI-Info.plist";NSMutableDictionary *dictionary =
我知道有很多与我的问题有关的答案,比如说.

Programmatically rename an XCode project
Renaming xcode 4 project and the actual folder

等等

但请看下面的代码:

NSString *plistPath = @"...../TestingAPI-Info.plist";
NSMutableDictionary *dictionary = [[NSMutableDictionary alloc]initWithContentsOfFile:plistPath];
[dictionary setObject:@"myTestingApp" forKey:@"CFBundleDisplayName"];
[dictionary writeToFile:plistPath atomically:YES];

我正在通过上面的代码更改应用程序图标的名称,

更改名称“MySuperApp => myTestingApp”

那么,使用上面的代码更改是否有效?我害怕app拒绝?我还想通过上面的代码设置所有更改,如Bundle identifier,Bundle name..etc?

它有效还是没有?通过使用上面的代码苹果拒绝我的应用程序?

解决方法

正如rckoenes所说的那样,这对设备无效.任何包内容都是只读的,包括info.plist.你无法覆盖它.

澄清:只需在Xcode中打开Info.plist文件并将其重命名为您想要的任何内容.您不需要任何代码.您将在Xcode项目中找到YourProjectName-Info.plist文件.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读