Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-4564] Allow creating static libraries with Swift #47141

Closed
swift-ci opened this issue Apr 11, 2017 · 0 comments
Closed

[SR-4564] Allow creating static libraries with Swift #47141

swift-ci opened this issue Apr 11, 2017 · 0 comments
Labels
compiler The Swift compiler in itself duplicate Resolution: Duplicates another issue feature A feature request or implementation off topic Resolution: Is beyond the scope of the Swift project (Xcode, proprietary Apple frameworks, etc.) performance static libraries Xcode

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-4564
Radar rdar://problem/31562569
Original Reporter Suliga (JIRA User)
Type New Feature
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels New Feature, Performance
Assignee None
Priority Medium

md5: b447988d2bf1f8612f82ef152beadbbc

duplicates:

  • SR-1520 Create Static Libraries with Swift

Issue Description:

Today we cannot build static libraries that contain Swift code. Only dynamic libraries (Frameworks) are supported.

For iOS apps this has a significant disadvantage related to slower app launch time.
Apple recommends having not more than 6 frameworks loaded dynamically (https://developer.apple.com/videos/play/wwdc2016/406/).

For larger Swift apps this constraint (6 dylibs) is too restrictive. One reason is modularization - it's easier for the development cycles and speed of iteration to work with smaller modules, and also to be able to use 3rd party Swift libraries. Another reason to use more modules is build speed. We've found Swift compiler's build times to be impacted badly as the number of files per module grows.

For those reasons, we need to be able to link statically, so we can modularize our application properly, iterate faster and easier, and not impact application boot times with dylib overhead.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added feature A feature request or implementation Xcode duplicate Resolution: Duplicates another issue static libraries off topic Resolution: Is beyond the scope of the Swift project (Xcode, proprietary Apple frameworks, etc.) and removed new feature labels Nov 12, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself duplicate Resolution: Duplicates another issue feature A feature request or implementation off topic Resolution: Is beyond the scope of the Swift project (Xcode, proprietary Apple frameworks, etc.) performance static libraries Xcode
Projects
None yet
Development

No branches or pull requests

2 participants