Version: 5.6
public string AddFile (string path, string projectPath);
public string AddFile (string path, string projectPath, iOS.Xcode.PBXSourceTree sourceTree);

参数

path 文件的物理路径。
projectPath 文件的项目路径。
sourceTree The source tree the path is relative to. By default it's PBXSourceTree.Group.

返回

string The GUID of the added file.

描述

Adds file to the project.

To add the file to the list of files to build, pass the returned value to AddFileToBuild.