表示 Xcode 项目(pbxproj 文件)。
PBXProject | 创建 PBXProject 类的新实例。 |
AddAssetTagForFile | 为给定文件添加资源标签。 |
AddAssetTagToDefaultInstall | 将资源标签添加到要在初始安装过程中下载的标签列表中。 |
AddBuildConfig | 为项目中的所有目标创建一组新的构建配置。 |
AddBuildProperty | 向指定目标的所有构建配置中的构建属性列表添加值。 |
AddBuildPropertyForConfig | 向给定构建配置的构建属性列表添加值。 |
AddCapability | 向 Xcode 项目添加目标功能。这将支持基于功能类型的行为。某些功能需要在 Xcode 中进行额外设置。要更好地控制功能的特定设置,请使用 ProjectCapabilityManager 类。 |
AddCopyFilesBuildPhase | 为给定目标创建新的副本文件构建阶段。 |
AddFile | 向已知文件列表添加一个新的文件引用。 |
AddFileToBuild | 将文件配置为针对给定原生目标进行构建。 |
AddFileToBuildSection | 将文件配置为针对特定构建部分的给定原生目标进行构建。 |
AddFileToBuildWithFlags | 将文件配置为针对具有特定编译器标志的给定目标进行构建。 |
AddFolderReference | 向已知文件列表添加一个新的文件夹引用。 |
AddFrameworksBuildPhase | 为给定目标创建新的框架构建阶段。 |
AddFrameworkToProject | 为指定目标添加系统框架依赖项。 |
AddResourcesBuildPhase | 为给定目标创建新的资源构建阶段。 |
AddShellScriptBuildPhase | 为给定目标创建新的副本 shell 脚本阶段。 |
AddSourcesBuildPhase | 为给定目标创建新的源代码构建阶段。 |
AddTarget | 创建新的原生目标。 |
BuildConfigByName | 为特定目标返回具有给定名称的构建配置 GUID。 |
BuildConfigNames | 返回项目中可用的构建配置的名称。 |
ContainsFileByProjectPath | 检查项目中是否包含具有给定项目路径的文件。 |
ContainsFileByRealPath | 检查项目中是否包含具有给定物理路径的文件。 |
ContainsFramework | 检查给定的系统框架是否是目标的依赖项。 |
FindFileGuidByProjectPath | 在项目中查找具有给定项目路径的文件(如果有)。 |
FindFileGuidByRealPath | 在项目中查找具有给定物理路径的文件(如果有)。 |
GetAllBuildPhasesForTarget | 返回指定目标的所有构建阶段。 |
GetBuildPhaseName | 返回具有指定 GUID 的构建阶段的名称。 |
GetBuildPhaseType | 返回具有指定 GUID 的构建阶段的类型。 |
GetBuildPropertyForAnyConfig | 在指定目标的所有构建配置中获取给定名称的构建属性值。如果属性具有多个值,则会用空格分隔这些值。 |
GetBuildPropertyForConfig | 在指定构建配置中获取给定名称的构建属性值。如果属性具有多个值,则会用空格分隔这些值。 |
GetCompileFlagsForFile | 返回为给定目标上的特定文件设置的编译标志。 |
GetCopyFilesBuildPhaseByTarget | 返回给定目标的匹配副本文件构建阶段的 GUID。 |
GetFrameworksBuildPhaseByTarget | 返回给定目标的框架构建阶段的 GUID。 |
GetResourcesBuildPhaseByTarget | 返回给定目标的资源构建阶段的 GUID。 |
GetShellScriptBuildPhaseForTarget | 返回给定目标的匹配副本 shell 脚本构建阶段的 GUID。 |
GetSourcesBuildPhaseByTarget | 返回给定目标的源代码构建阶段的 GUID。 |
GetTargetProductFileRef | 返回由构建目标创建的工件的文件引用。 |
InsertCopyFilesBuildPhase | 为给定目标创建新的副本文件构建阶段。 |
InsertShellScriptBuildPhase | 为给定目标创建新的 shell 脚本构建阶段。 |
ProjectGuid | 返回项目的 GUID。 |
ReadFromFile | 从给定路径标识的文件中读取项目。 |
ReadFromStream | 从给定的文本阅读器中读取项目。 |
ReadFromString | 从给定的字符串中读取项目。 |
RemoveAssetTag | 删除资源标签。 |
RemoveAssetTagForFile | 删除给定文件的资源标签。 |
RemoveAssetTagFromDefaultInstall | 从要在初始安装过程中下载的标签列表中删除资源标签。 |
RemoveBuildConfig | 从项目中的所有目标中删除具有给定名称的所有构建配置。 |
RemoveFile | 从项目中删除给定文件。 |
RemoveFileFromBuild | 从要针对给定目标构建的文件列表中删除给定文件。 |
RemoveFrameworkFromProject | 删除指定目标的系统框架依赖项。 |
SetBuildProperty | 在指定目标的所有构建配置中将构建属性设置为给定值。 |
SetBuildPropertyForConfig | 在指定构建配置中将构建属性设置为给定值。 |
SetCompileFlagsForFile | 为给定目标中的给定文件设置编译标志。 |
SetTeamId | 设置 Xcode 项目的团队 ID。 |
TargetGuidByName | 返回具有给定名称的原生目标的 GUID。 |
UpdateBuildProperty | 在指定目标的所有构建配置中,添加和删除构建属性的值。 |
UpdateBuildPropertyForConfig | 在给定的构建配置中,添加和删除构建属性的值。 |
WriteToFile | 将项目内容写入指定文件。 |
WriteToStream | 将项目内容写入指定的文本写入器。 |
WriteToString | 将项目内容写入字符串。 |
GetPBXProjectPath | 返回给定 Unity 构建路径中 PBX 项目的路径。 |
GetUnityTargetName | 返回 Unity 项目中的默认主目标名称。 |
GetUnityTestTargetName | 返回默认的测试目标名称。 |
IsBuildable | 检查具有给定扩展名的文件是否可以由 Xcode 创建。 |
IsKnownExtension | 检查 PBXProject 是否知道具有给定扩展名的文件。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.