gpt4 book ai didi

iphone - 如何以编程方式获取 .app 文件名?

转载 作者:行者123 更新时间:2023-12-03 20:24:26 25 4
gpt4 key购买 nike

当我编译项目时,会创建一个 .app 应用程序。默认与项目名称同名。

如何以编程方式获取该名称?

最佳答案

NSDictionary *d = [NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Info" ofType:@"plist"]];
NSString *s = [d objectForKey:@"CFBundleExecutable"];
NSLog(@"d: %@", s);

关于iphone - 如何以编程方式获取 .app 文件名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2025746/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com