can't find info.plist in xcode 4

梦想的初衷 提交于 2019-12-10 01:47:46

问题


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!


回答1:


Search for AppName-Info.plist where AppName is the name of your app.




回答2:


  1. Hit Cmd-1 to make sure you're on the project navigator tab in the left pane.
  2. Then click the main project table entry (the top one with your project name).
  3. Click the "Info" tab in the main area (not the "Build Settings")

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 the Resources folder of your project.



来源:https://stackoverflow.com/questions/6456045/cant-find-info-plist-in-xcode-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!