

In the pane on the right side of the dialog, Xcode displays the templates you can choose. In the sidebar on the left side of the new target dialog, choose Application Extension for iOS or OS X. To add a new target to your Xcode app project, choose File > New > Target. The easiest way to add an app extension target is to use an Xcode template that provides a target preconfigured for your extension point. The extension points supported in iOS and OS X, along with their ist extension point identifier keys, are described in the section NSExtensionPointIdentifier.Īfter you choose the extension point that makes sense for your app extension, add a new target to your containing app. This choice is an important one because it determines the APIs that are available to you and, in some cases, the ways in which APIs behave. After you optimize and test your app extension, you’re ready to distribute it within your containing app.īegin Development By Choosing the Right Extension Pointīecause each extension point targets a well-defined user scenario, your first job is to choose the extension point that supports the type of functionality you plan to deliver.
Mac create new file extensions code#
Use the corresponding Xcode app extension template and enhance the default files with custom code and user interface (UI). When you’re ready to develop an app extension, begin by choosing the extension point that supports the user task you want to facilitate.
