Xcode - Sharing extensions and app groups among targets with different developer accounts

时间:2018-01-11 08:46:31

标签: ios xcode

I have an iOS app in Xcode which has 5 targets (meaning, they're different applications with different developer accounts, just using the same codebase).

I have added a Notification Content Extension and I want all other targets to use it.

The thing is, this extension also uses a certain App Group to share data between it and parent targets. But, because the other targets all have different developer accounts, I cannot set a global App Group to all apps. Is there a way around it? what's the best practice?

Thanks :)

1 个答案:

答案 0 :(得分:0)

不,对于具有相同开发者帐户的目标,您可能无法将您的逻辑上传到服务器并与api共享,因此您可以使用UIPasteboard作为解决方法,但不推荐使用Apple Docs