# Issues with build having multiple targets in Ionic-capacitor app

**URL:** <https://forum.ionicframework.com/t/issues-with-build-having-multiple-targets-in-ionic-capacitor-app/215318>\
**Category:** Appflow\
**Created:** [September 23, 2021, 4:56am UTC](https://forum.ionicframework.com/t/issues-with-build-having-multiple-targets-in-ionic-capacitor-app/215318 "2021-09-23T04:56:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumarsunil0007](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kumarsunil0007](https://forum.ionicframework.com/u/kumarsunil0007)\
**Post date:** [September 23, 2021, 4:56am UTC](https://forum.ionicframework.com/t/issues-with-build-having-multiple-targets-in-ionic-capacitor-app/215318/1 "2021-09-23T04:56:53Z")

</div>

I have an ionic-capacitor app with share extension. When I am building app on `xcode`, all goes well, I have used same certificates in App-flow for building, but app fails because app flow is not adding certificates for targets other than `App`. I am getting following error message. It has been around a month that I have contacted support and they don’t have a valid answer. Below is outcome from ````

```auto
Set Team id to: XN8672XX2T for target: ShareExtension
[11:02:20]: Set Code Sign identity to: Apple Development: Demo (1234J399QG) for target: ShareExtension
[11:02:20]: Set Team id to: XN86XXXT for target: App
[11:02:20]: Set Code Sign identity to: Apple Development: Demo (1234J399QG) for target: App
[11:02:20]: Successfully updated project settings to use Code Sign Style = 'Manual'
[11:02:20]: Modified Targets:
[11:02:20]: * ShareExtension
[11:02:20]: * App
[11:02:20]: ------------------------------------------
[11:02:20]: --- Step: update_provisioning_profiles ---
[11:02:20]: ------------------------------------------
[11:02:28]: You’re updating provisioning profiles directly in your project, but have you considered easier ways to do code signing?
[11:02:28]: https://docs.fastlane.tools/codesigning/GettingStarted/
[11:02:28]: Downloading root certificate from (https://www.apple.com/appleca/AppleIncRootCertificate.cer) to path '/tmp/AppleIncRootCertificate.cer'
/usr/local/Cellar/fastlane/2.166.0/libexec/gems/fastlane-2.166.0/fastlane/lib/fastlane/actions/update_project_provisioning.rb:26: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
[11:02:28]: Parsing mobile provisioning profile from '/Users/ionic/builds/demo/demo_mobileapp/a367cc7d-939a-4fe9-9646-3f9a022401d4.mobileprovision'
[11:02:28]: Going to update project '/Users/ionic/builds/demo/deom_mobileapp/ios/App/App.xcodeproj' with UUID
[11:02:28]: Updating target App...
[11:02:28]: Updating configuration Debug...
[11:02:28]: Updating configuration Release...
**[11:02:28]: Skipping target ShareExtension as it doesn't match the filter 'App'**
[11:02:28]: Successfully updated project settings in '/Users/ionic/builds/carstenschaefer/lisa_mobileapp/ios/App/App.xcodeproj'

```

And due to this skipping of extra target, I am getting this error.

```auto
[11:02:49]: ▸ ❌ error: "ShareExtension" requires a provisioning profile with the App Groups feature. Select a provisioning profile in the Signing & Capabilities editor. (in target 'ShareExtension' from project 'App')

```

I have doing re-search since last 1.5 month, I have setup app flow in my custom ubuntu instance and it works well there but not in Ionic-app-flow environment.

Any suggestions, help to handle this issue?

---

<div class="post-metadata">

**Author:** ![CodeWithOz](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@CodeWithOz](https://forum.ionicframework.com/u/CodeWithOz)\
**Post date:** [January 22, 2022, 11:42pm UTC](https://forum.ionicframework.com/t/issues-with-build-having-multiple-targets-in-ionic-capacitor-app/215318/2 "2022-01-22T23:42:31Z")

</div>

Did you find a solution for this?

---

<div class="post-metadata">

**Author:** ![kumarsunil0007](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kumarsunil0007](https://forum.ionicframework.com/u/kumarsunil0007)\
**Post date:** [February 15, 2022, 8:41am UTC](https://forum.ionicframework.com/t/issues-with-build-having-multiple-targets-in-ionic-capacitor-app/215318/3 "2022-02-15T08:41:14Z")

</div>

Yes, I was able to create build after adding 2 profiles in configuration. You need to check for [Here](https://ionic.io/docs/appflow/package/adding-credentials)
