![]() ![]() In most cases, you can test the default app extension by enabling it in System Preferences or Settings and then accessing it through another app. If your containing app target links to an embedded framework, the app must also include 64-bit architecture or it will be rejected by the App Store.įor more information about 64-bit development, see 64-Bit Transition Guide for Cocoa Touch or 64-Bit Transition Guide for Cocoa, depending on your target platform. Xcode includes the appropriate 64-bit architecture with its “Standard architectures” setting when you create a new app extension target. appex.Īn app extension target must include the arm64 (iOS) or x86_64 architecture (OS X) in its Architectures build settings or it will be rejected by the App Store. When you build an extension based on an Xcode template, you get an extension bundle that ends in. ![]() For example, Figure 3-1 shows the templates you can use to create an iOS app extension.įigure 3-1Xcode supplies several app extension templates you can useĪfter you choose a template and finish adding the target to your project, you should be able to build and run the project even before you customize the extension code. 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. 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. ![]()
0 Comments
Leave a Reply. |