部署后,iOS Share Extension无法正常工作 [英] iOS Share Extension not working after deploy

查看:414
本文介绍了部署后,iOS Share Extension无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Share扩展,当通过设备或模拟器上的xcode运行它时,它可以正常运行.但是当我创建IPA或使用TestFlight时,它并没有将我的列表从主机应用传递到扩展程序.

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.

我正在创建此扩展程序,以便在主机应用程序中发布图像(而不是仅在本地sqlite中上传到服务器上).为此,我检查了App Group,这很好,交叉检查了配置证书,并且该证书也随该App Group一起附上.

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.

推荐答案

授权文件需要具有组ID信息,并且应该在构建设置中反映该信息.

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.

这篇关于部署后,iOS Share Extension无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆