【问题标题】:How to make a objective-c written iOS app containing a swift-written app extension while still supporting iOS 6?如何在仍然支持 iOS 6 的同时制作包含 swift 编写的应用程序扩展的 Objective-c 编写的 iOS 应用程序?
【发布时间】:2014-10-07 06:11:12
【问题描述】:

这可能吗?

我制作了一个存档,验证并推送到 iTunes Connect,我收到一封邮件说:

Invalid Deployment Target - Apps built with Swift must have a Deployment Target of 7.0 or later.

我知道 iOS 6 不支持 swift,但由于扩展也不支持,这样做应该是可能的吗?

包含的应用程序本身仍然完全用 Objective-C 编写。

我知道扩展仅适用于 iOS 8。

【问题讨论】:

    标签: ios6 swift ios8 app-store-connect ios-app-extension


    【解决方案1】:
    1. 扩展是 iOS 8 中的一个新功能,它不支持 iOS 7 及更低版本。见https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/index.html#//apple_ref/doc/uid/TP40014214-CH20-SW1

    2. 您的应用程序扩展是用 swift 编写的。而且 Swift 只支持 iOS 7+。见Swift with iOS 5 deployment target

    所以答案是不可能的。由于上述原因,您的项目是否用objective-c编写也无关紧要。

    更新:最好按照 iTunes connect 的说明让您的应用获得批准。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多