Kapil
Kapil

Reputation: 41

iOS Share Extension not working after deploy

I have created a Share extension which working fine while I am running it though xcode on device or simulator. But when I creating IPA or using TestFlight, it is not passing my list from host app to extension.

I am creating this extension for posting an image in host app ( without uploading on server just in local sqlite ). For this I have checked, App Group and it is fine, cross checked the provisioning certificate and it is also attached with app group.

If you have any idea please let me know.

Upvotes: 4

Views: 1792

Answers (2)

Tim
Tim

Reputation: 1

Make sure you have two Entitlement Files (for your main app and the extension each.) One is for Debug and the other for Release.

Click on your targets (main app and extension) -> Signing&Capabilities -> Release (top left corner). Unfortunately, all parameters in the Release section are copied from the Debug section which lets you think that everything is set up correctly.

However, you have to re add the app group string for Xcode to create also the Release Entitlement files (for each target) which is needed for your extension to work correctly in TestFlight and on the AppStore.

Upvotes: 0

K.S
K.S

Reputation: 401

The entitlement file needs to have the group id information and same should be reflected in build settings.

For me it was just that entitlement file was missing from build settings under code signing entitlements for release.

In debug the app does not require entitlement file.

Upvotes: 2

Related Questions