You can follow these steps, worked for me:
Go to your app's main target -> Build Phases -> Embed App Extensions
make sure your extension target is added there, uncheck "Copy only when installing"..
Topic:
App & System Services
SubTopic:
General
Tags: