sheldonth/ios-cmake

Notification Extension

devfsmalik opened this issue · 1 comments

I have a cmake file which generates xcode project file and all the configurations. Now I want to add a new target for Notification extension.
I am able to create new target using this
add_library(NotificationExtension MODULE ${appex-sources})
set_target_properties(NotificationExension PROPERTIES BUNDLE YES XCODE_PRODUCT_TYPE com.apple.product-type.app-extension)
and all other target properties for target.

I am facing issue that Notification extension is not embedded in Main Project target. I tried to copy manually using
add_custom_command and copied NotificationExtension.appex to PlugIns folder of app file.
But still it is not working.
When I manually create Notification extension target it works fine.
Can you guide how we can embedd .appex file into main target.

This framework needs updated for quite a large number of new 'Extensions' which link in other code that's vended by Apple. I will try to make a project out of confirming how to enable these very soon.