Does the swift compiler/linker automatically remove unused methods/classes/extensions, etc.?
- 阅读更多 关于 Does the swift compiler/linker automatically remove unused methods/classes/extensions, etc.?
We have a lot of code which is usable in any iOS application we write. Things such as: Custom/Common Controls Extensions on common objects like UIView, UIImage and UIViewController Global utility functions Global constants Related sets of files that make up common 'features' like a picker screen that can be used with anything that can be enumerated. For reasons unrelated to this question, we cannot use static or dynamic libraries. These must be included in the project as actual source files. There are several hundred of these 'core' files so what I've been doing is adding all the files to the