在 xcode 4 中找不到 info.plist
所以常规介绍:我是 Objective C 的新手,到处搜索但找不到,所以请帮忙...
我想做的就是设置我的应用程序以在后台获取位置更新 - 就是这样。我知道我应该在项目的 info.plist 文件中将位置添加到 UIBackgroundModes 中,但是我不知道 info.plist 在哪里。
我在项目“打包”下的“构建设置”下看到的只是 info.plist 文件(下面有“发布”和“调试”)。不存在任何 UIBackgroundModes。
任何帮助将非常受欢迎!谢谢!
So the regular intro: I am a newbie to objective c, searched everywhere and could not find, so please help...
All I want to do is to set my app to get location updates in the background - THAT'S IT. I know that I suppose to add location to UIBackgroundModes in the info.plist file in my project, however I have just NO CLUE where info.plist is.
All I see under my project Build Settings under Packaging is info.plist file (with Release and Debug underneath). No presence of UIBackgroundModes whatsoever.
Any help would be greatly welcome! Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您现在正在查看 Info.plist 字段。您可以右键单击“自定义 iOS 目标属性”下的“添加行”。
实际的 .plist 文件也存在于您的项目中,名为
ProjectName-Info.plist
,可能位于项目的Resources
文件夹中。You're now looking at your Info.plist fields. You can right-click and Add Row under Custom iOS Target Properties.
The actual .plist file also exists in your project called
ProjectName-Info.plist
, probably in theResources
folder of your project.搜索AppName-Info.plist,其中<em>AppName是您的应用程序的名称。
Search for AppName-Info.plist where AppName is the name of your app.