简体   繁体   English

我可以使用基本SDK iOS 7.0和Today Extension发布应用程序吗?

[英]Can I release an app with base SDK iOS 7.0 and with Today Extension?

I want to add Today extension to my app with base SDK iOS 7.0. 我想使用基本SDK iOS 7.0将Today扩展添加到我的应用中。 Extension should work on iOS 8 devices and just shouldn't appear on iOS 7 devices. 扩展程序应在iOS 8设备上运行,而不应出现在iOS 7设备上。 I know that app extension can work only on iOS 8. But it exists as a different target in my project. 我知道应用程序扩展只能在iOS 8上运行。但是在我的项目中,它作为另一个目标存在。 So can I release the app if the containing app will have base SDK 7 and app extension will have base SDK 8. I have tested it and everything works just fine. 因此,如果包含的应用程序将具有基本的SDK 7而应用程序扩展将具有基本的SDK 8,那么我可以发布该应用程序。我已经对其进行了测试,并且一切正常。 Today extension appears in Notification Center only on iOS 8 devices and it doesn't appear on iOS 7 devices, no errors. 今日扩展程序仅在iOS 8设备上出现在Notification Center中,并且在iOS 7设备上没有出现,没有错误。 But sometimes everything works fine in sandbox, but can cause the issues submitting to the App Store. 但是有时候,沙箱中的所有内容都可以正常运行,但可能会导致问题提交到App Store。 So will this work? 那会行吗?

The answer is NO. 答案是不。 Your base SDK should be 8.0 or 8.1 in order to deploy a containing app with an extension. 您的基本SDK应该为8.0或8.1,以便部署包含扩展程序的包含应用程序。 But you can set the deployment target to 7.0 so your app runs on iOS 7 too. 但是您可以将部署目标设置为7.0,因此您的应用程序也可以在iOS 7上运行。 Base SDK is the SDK you use to build the app. 基本SDK是用于构建应用程序的SDK。 Deployment target is the minimum supported iOS version you want. 部署目标是所需的最低支持的iOS版本。

Your containing app should have entitlements too (app groups) which are not supported in SDK 7.0. 您的包含应用程序也应该具有权利(应用程序组),SDK 7.0不支持这些权利。

Apple has posted a guide on how to support older iOS versions with a containing app that deploys extensions. Apple已发布有关如何通过包含部署扩展的应用程序支持较旧的iOS版本的指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM