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.
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_commandand copiedNotificationExtension.appextoPlugInsfolder 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.