add "Action Extension" to your project.
in the targets list press "+" and search for "Action Extension"
then add rules to info.plist to handle necessary types