在 XCode 项目中添加 Info.plist
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5326371/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Adding Info.plist in a XCode project
提问by Neigaard
When I create a Mac OS X project in XCode, I do not get a Info.plist as I do if I create a IOS project. I have tried just adding a Info.plist and pointing to it in the build settings, but my application does not use the Info.plist
当我在 XCode 中创建 Mac OS X 项目时,我不会像创建 IOS 项目那样获得 Info.plist。我试过只添加一个 Info.plist 并在构建设置中指向它,但我的应用程序不使用 Info.plist
What does it take to make my application react to settings (like CFBundleName) in the Info.plist?
让我的应用程序对 Info.plist 中的设置(如 CFBundleName)做出反应需要什么?
Thank you
谢谢
回答by lbrndnr
It's almost impossible that Xcode doesn't generate an info.plist. Are you able to compile your application? Check the resources folder. There should be a file called "YourApplication-Info.plist"
Xcode 不生成 info.plist 几乎是不可能的。你能编译你的应用程序吗?检查资源文件夹。应该有一个名为“YourApplication-Info.plist”的文件