找不到信息。plist xcode 4

时间:2023-02-06 12:30:04

So the regular intro: I am a newbie to objective c, searched everywhere and could not find, so please help...

所以常规的介绍:我是objective c的新手,到处找都找不到,所以请帮忙…

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.

我所要做的就是设置我的应用程序以获得后台的位置更新——仅此而已。我知道我想在信息中添加位置到uibackgroundmode。plist文件在我的项目,但我只是没有线索,在哪里的信息。plist。

All I see under my project Build Settings under Packaging is info.plist file (with Release and Debug underneath). No presence of UIBackgroundModes whatsoever.

我在我的项目构建设置下看到的都是信息。plist文件(在下面发布和调试)。没有uibackgroundmode的存在。

Any help would be greatly welcome! Thanks!

任何帮助都是非常欢迎的!谢谢!

2 个解决方案

#1


12  

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

寻找AppName-Info。plist其中的AppName是你的应用的名字。

#2


16  

  1. Hit Cmd-1 to make sure you're on the project navigator tab in the left pane.
  2. 点击Cmd-1以确保您在左边窗格中的project navigator选项卡上。
  3. Then click the main project table entry (the top one with your project name).
  4. 然后单击主项目表条目(项目名称的顶部)。
  5. Click the "Info" tab in the main area (not the "Build Settings")
  6. 点击主区域的“Info”选项卡(不是“构建设置”)

You're now looking at your Info.plist fields. You can right-click and Add Row under Custom iOS Target Properties.

你现在正在查看你的信息。plist字段。您可以右键单击并在自定义iOS目标属性下添加行。

The actual .plist file also exists in your project called ProjectName-Info.plist, probably in the Resources folder of your project.

实际的.plist文件也存在于名为ProjectName-Info的项目中。plist,可能在项目的Resources文件夹中。

#1


12  

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

寻找AppName-Info。plist其中的AppName是你的应用的名字。

#2


16  

  1. Hit Cmd-1 to make sure you're on the project navigator tab in the left pane.
  2. 点击Cmd-1以确保您在左边窗格中的project navigator选项卡上。
  3. Then click the main project table entry (the top one with your project name).
  4. 然后单击主项目表条目(项目名称的顶部)。
  5. Click the "Info" tab in the main area (not the "Build Settings")
  6. 点击主区域的“Info”选项卡(不是“构建设置”)

You're now looking at your Info.plist fields. You can right-click and Add Row under Custom iOS Target Properties.

你现在正在查看你的信息。plist字段。您可以右键单击并在自定义iOS目标属性下添加行。

The actual .plist file also exists in your project called ProjectName-Info.plist, probably in the Resources folder of your project.

实际的.plist文件也存在于名为ProjectName-Info的项目中。plist,可能在项目的Resources文件夹中。