我的 iOS 应用和 WatchKit 应用完全是 Swift。我需要更改 "Embedded Content Contains Swift" 吗?
My iOS app and WatchKit app are entirely Swift. Do I need to change "Embedded Content Contains Swift"?
目前,所有目标都设置为否:iOS 应用程序目标、WatchKit 扩展和 WatchKit 应用程序。基于此 post:
如果您在 iPhone 应用程序中使用 Swift,请务必将框架和扩展的 "Embedded Content Contains Swift" 构建设置设置为 NO,并将 iPhone 的构建设置设置为 YES应用目标。
我不太明白它对我的应用有何影响。我需要改变什么吗?我已经阅读了关于 "Embedded Content Contains Swift" 的 document。我认为此设置仅适用于同时使用 Objective-C 和 Swift 构建的应用程序。我说得对吗?
顺便说一句,在 iOS 应用程序目标的 linked 框架和库中,我有:iAd、StoreKit 和 WatchKit。 WatchKit 扩展和应用程序不会 link 任何东西。我使用 Xcode 6.3.
感谢您的帮助。
如果您要添加包含 Swift 代码的库或框架,则只需要设置 Embedded Content Contains Swift 标志,而不管您的基础项目的语言(例如,Swift 或 Objective-C)。
更多信息在这里:https://developer.apple.com/library/ios/qa/qa1881/_index.html
对于您的情况,您 不必 将该标志设置为 yes
,因为您没有链接到任何外部 Swift 库。
目前,所有目标都设置为否:iOS 应用程序目标、WatchKit 扩展和 WatchKit 应用程序。基于此 post:
如果您在 iPhone 应用程序中使用 Swift,请务必将框架和扩展的 "Embedded Content Contains Swift" 构建设置设置为 NO,并将 iPhone 的构建设置设置为 YES应用目标。
我不太明白它对我的应用有何影响。我需要改变什么吗?我已经阅读了关于 "Embedded Content Contains Swift" 的 document。我认为此设置仅适用于同时使用 Objective-C 和 Swift 构建的应用程序。我说得对吗?
顺便说一句,在 iOS 应用程序目标的 linked 框架和库中,我有:iAd、StoreKit 和 WatchKit。 WatchKit 扩展和应用程序不会 link 任何东西。我使用 Xcode 6.3.
感谢您的帮助。
如果您要添加包含 Swift 代码的库或框架,则只需要设置 Embedded Content Contains Swift 标志,而不管您的基础项目的语言(例如,Swift 或 Objective-C)。
更多信息在这里:https://developer.apple.com/library/ios/qa/qa1881/_index.html
对于您的情况,您 不必 将该标志设置为 yes
,因为您没有链接到任何外部 Swift 库。