Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PBXProjectExtensions.AddWatchExtension

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static method AddWatchExtension(proj: iOS.Xcode.PBXProject, mainTarget: string, name: string, bundleId: string, infoPlistPath: string): string;
public static string AddWatchExtension(iOS.Xcode.PBXProject proj, string mainTarget, string name, string bundleId, string infoPlistPath);

Parameters

proj The implicit this parameter for the extension method.
mainTarget The GUID of the main target to link the watch extension to.
name The name of the watch extension.
bundleId The bundle ID of the watch extension. This bundle ID must include the bundle ID that is later used for watch app as a prefix. That is, the structure of the ID is as follows: watchAppBundleId + ".a_subdomain".
infoPlistPath Path to the watch extension Info.plist document.

Returns

string The GUID of the new target.

Description

Creates a watch extension.

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