Version: 5.6

PBXProject

class in UnityEditor.iOS.Xcode

Switch to Manual

Description

Represents an Xcode project (pbxproj file).

Constructors

PBXProjectCreates a new instance of PBXProject class.

Public Functions

AddBuildPropertyAdds a value to build property in all build configurations for the specified target(s).
AddBuildPropertyForConfigAdds a value to build property for the specific build configuration.
AddFileAdds file to the project.
AddFileToBuildConfigures file for building for the given target.
AddFileToBuildWithFlagsConfigures file for building for the given target with specific compiler flags.
AddFrameworkToProjectAdds a framework dependency for the specified target.
BuildConfigByNameReturns the GUID of build configuration with the given name for the specific target. null is returned if such configuration does not exist.
ContainsFileByProjectPathChecks if the project contains a file with the given project path.
ContainsFileByRealPathChecks if the project contains a file with the given physical path.
FindFileGuidByProjectPathFinds file GUID by project path.
FindFileGuidByRealPathFinds file GUID by physical path.
GetCompileFlagsForFileReturns compile flags set for the specific file.
ReadFromFileReads the project from a file identified by the given path.
ReadFromStreamReads the project from the given text reader.
ReadFromStringReads the project from the given string.
RemoveFileRemoves the given file from project.
RemoveFileFromBuildRemoves given file from the list of files to build for the given target.
RemoveFrameworkFromProjectRemoves the given framework from the given target build.
SetBuildPropertySets the build property to the given value in all build configurations for the specified targets.
SetBuildPropertyForConfigSets the build property to the given value in the given build property.
SetCompileFlagsForFileSets the compilation flags for the given file in the given target.
TargetGuidByNameReturns the GUID of the native target with the given name.
UpdateBuildPropertyAdds and removes values from build property in all build configurations for the specified target(s).
UpdateBuildPropertyForConfigAdds and removes values from build property in the given build configuration.
WriteToFileWrites the project contents to the specified file.
WriteToStreamWrites the project contents to the specified text writer.
WriteToStringWrites the contents of the project to string.

Static Functions

GetPBXProjectPathReturns the path to PBX project in the given build path.
GetUnityTargetNameReturns the default app target name.
GetUnityTestTargetNameReturns the default test target name.
IsBuildableChecks if a file with the given extension can be built by Xcode.
IsKnownExtensionChecks if files with the given extension are known to PBXProject.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961