adding shared extension for ios

I want to add the ability to share to my application on ios. The basic action of adding a shared extension target to the app (at ios folder) causes a cyclic link error. even if I am not writing a single line of code. Anyone was successful at this task?