PBXProject.GetUnityMainTargetGuid

Declaration

public string GetUnityMainTargetGuid();

Returns

string The GUID for the main target.

Description

Returns GUID of the main target in Unity project.

Returns GUID of the main target. This target includes everything except source code, plug-ins, dependent frameworks, and source compile/link build options. Use GetUnityFrameworkTargetGuid to get GUID of the framework target which includes these options.

Note: This method is not supported on macOS platform. Please use TargetGuidByName method with PlayerSettings.productName argument instead.


Did you find this page useful? Please give it a rating: