nativescript-cli icon indicating copy to clipboard operation
nativescript-cli copied to clipboard

[Tracking] iOS App Extensions

Open KristianDD opened this issue 6 years ago • 5 comments

Overview

iOS App Extensions feature enables adding extension via NativeScript plugins or with adding extensions folder inside App_Resources/iOS/.

The extension should be created and developed inside Xcode. Once the user is happy with the result, the folder containing the extension should be copied inside App_Resources/iOS/extensions. The an extension.json should be added. This file describes the SDK frameworks used in the extension and the assetcatalogCompilerAppiconName. For example:

{
    "frameworks": ["NotificationCenter.framework"],
    "assetcatalogCompilerAppiconName": "AppIconExtension"
}  

In the example above you should have an .xcassets catalog with AppIconExtension.appiconset inside the extension folder.

Each folder inside App_Resources/iOS/extensions is considered a separate extension and the folder name is considered the extension name.

Known issues

  • [ ] The extensions inside NativeScript application support only Automatic code signing. Any provision configuration inside App_Resources/iOS/build.xcconfig will be ignored. And the application build will most probably fail.
  • [ ] Currently including multiple extensions using the same SDK framework is not supported.
  • [ ] Local frameworks (not SDK ones) will not be included in the build of the extension

Discussion

Please, don't report problems here. Instead, open a new issue and link it to this one. Let's use this discussion for suggestions and improvement ideas. We would love to hear from you!

KristianDD avatar Mar 25 '19 12:03 KristianDD

  • [x] Documentation added via https://github.com/NativeScript/docs/pull/1608

NickIliev avatar Apr 01 '19 12:04 NickIliev

Any progress on this feature? I'd love to be able to configure build settings for the extension as well :)

fpaaske avatar Apr 01 '20 13:04 fpaaske

@NickIliev, do you have some info about status and plans to complete this feature?

fpaaske avatar Apr 20 '20 07:04 fpaaske

@KristianDD @rosen-vladimirov Is there any progress on this task? It would be very useful to be able to have a build.xcconfig under App_Resources/iOS/extensions/myext/build.xcconfig. For example to set up manual signing, and other parameters that are local to the extension.

fpaaske avatar May 27 '20 16:05 fpaaske

It's been a year now, so I thought I'd pop by and ask if there's been any progress on this. Trying not to be too naggy 😅

fpaaske avatar Jun 08 '21 09:06 fpaaske