Where can i find info.plist file?

为君一笑 提交于 2020-05-11 03:47:21

问题


I am reading an iOS dev book and in it saw a reference to a info.plist file used as part of an Obj-C project. Unfortunately, the book did not explicitly say where the file may be found?

Where is this file located? How can i gain access to it as part of Xcode?


回答1:


The Info.plist file is by default located in the root folder of your application's bundle, it's derived from the {ProjectName}-Info.plist file in the Xcode project. By default it's listed in a group called Supporting Files.




回答2:


The app I was developing had some custom settings and in my case the Info.plist file was in a different place.

Here is how I look for it. (the safest way)

In xCode:

  • Click on the project (name)
  • Click "Build Settings"
  • Look for Packaging group
  • Inside packaging group you will find your Info.plist file

In JetBrains AppCode:

  • right click on project (name)
  • click on "Project Settings"
  • Select your Project in the above frame
  • Look for "Info.plist File"



回答3:


To check where Info.plist[About] is located:

Build Settings -> Info.plist File

When you create a new Bundle(Application, Framework, Tests), Xcode automatically save it into a place which you can find simply in Build Settings. But sometimes it is not so simple to find it, for example using CocoaPods

During refactoring or others situations the Info.plist path can be changed and Xcode do not automatically change Build Settings and you get

Build input file cannot be found: 'some_path/Info.plist' (in target 'SomeTarget' from project 'SomeProject')

You can fix it finding a file and modifying settings

File -> Open Quickly -> Find the correct one -> Reveal in Project Navigator -> update Info.plist File in the Build Settings



回答4:


If you are using flutter the path is project-name\ios\Runner\Info.plist



来源:https://stackoverflow.com/questions/6853813/where-can-i-find-info-plist-file

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