在 XCode 项目中添加 Info.plist [英] Adding Info.plist in a XCode project

查看:70
本文介绍了在 XCode 项目中添加 Info.plist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 XCode 中创建 Mac OS X 项目时,我不会像创建 IOS 项目那样获得 Info.plist.我试过只添加一个 Info.plist 并在构建设置中指向它,但我的应用程序不使用 Info.plist

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

如何使我的应用程序对 Info.plist 中的设置(如 CFBundleName)做出反应?

What does it take to make my application react to settings (like CFBundleName) in the Info.plist?

谢谢

推荐答案

Xcode 不生成 info.plist 几乎是不可能的.你能编译你的应用程序吗?检查资源文件夹.应该有一个名为YourApplication-Info.plist"的文件

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆