Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS - Share a Today Extension with multiple app targets?

I have a project with multiple app targets (about 25).

I'm going to make a Today Extension for those apps but I don't want to create about 25 extensions with the same code and configuration.

Is it possible to create only one Today Extension that I assign to the 25 apps ?

like image 890
David 'mArm' Ansermot Avatar asked Feb 19 '15 13:02

David 'mArm' Ansermot


1 Answers

It is possible, but with some manipulations. To connect extension with a target you need:

  1. Add your extension to target's embedded binaries ("General" tab of project's settings)

enter image description here

  1. Add extension's target to target dependencies ("Build Phases" tab of project's settings)

enter image description here

  1. Prefix your extension's bundle identifier with the parent app's (your current target) bundle identifier or you will get an error:

enter image description here

So when you will build or distribute your target make this manipulations and fix provisioning profile's issues with Xcode (it can do this automatically).

like image 84
Vlad Avatar answered Oct 22 '22 22:10

Vlad