macOS应用程序中仍然需要Swift的嵌入式dylib吗? [英] Are Swift's embedded dylibs still required in macOS apps?

查看:156
本文介绍了macOS应用程序中仍然需要Swift的嵌入式dylib吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Swift 5发行说明说:

The Swift 5 release notes say:

在运行iOS 12.2,watchOS 5.2和tvOS 12.2的设备的构建变体中,Swift应用程序不再包含用于Swift标准库的动态链接库和Swift SDK覆盖.

Swift apps no longer include dynamically linked libraries for the Swift standard library and Swift SDK overlays in build variants for devices running iOS 12.2, watchOS 5.2, and tvOS 12.2.

但是在同一上下文中没有提及macOS.

But there is no mention of macOS in the same context.

用Swift 5编写的Mac应用程序是否仍需要嵌入消耗11MB的那15个Swift dylib(libswiftCore.dylib,libswiftFoundation.dylib等)?看来,默认情况下,Xcode 10.2仍会嵌入它们.

Do Mac applications written in Swift 5 still need to embed those 15 Swift dylibs (libswiftCore.dylib, libswiftFoundation.dylib, etc) consuming 11MB? It appears that, by default, Xcode 10.2 still embeds them.

推荐答案

不,他们没有.但是,您需要以macOS 10.14.4为目标才能利用此优势.

No, they do not. However, you need to target macOS 10.14.4 to take advantage of this.

这篇关于macOS应用程序中仍然需要Swift的嵌入式dylib吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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