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-11422] Generated .swiftinterface got an error when imported #53823

Open
swift-ci opened this issue Sep 5, 2019 · 7 comments · Fixed by #27065
Open

[SR-11422] Generated .swiftinterface got an error when imported #53823

swift-ci opened this issue Sep 5, 2019 · 7 comments · Fixed by #27065
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself textual interfaces unexpected error Bug: Unexpected error

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Sep 5, 2019

Previous ID SR-11422
Radar rdar://problem/55094784
Original Reporter leavez (JIRA User)
Type Bug

Attachment: Download

Environment

xcode 11.4

Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, ParseableInterfaces
Assignee None
Priority Medium

md5: 3db03845a6bf1f1df17ce7d683f5bee2

Issue Description:

detail descriped here https://forums.swift.org/t/generated-swiftinterface-has-wrong-content/28543

The generated frameworks with .swiftinterface is attached.

@harlanhaskins
Copy link
Collaborator

@swift-ci create

@harlanhaskins
Copy link
Collaborator

I have a fix for the SwiftyJSON issue, which I've confirmed works locally. #27065

@swift-ci
Copy link
Collaborator Author

Comment by leavez (JIRA)

Any update?

@harlanhaskins
Copy link
Collaborator

Yes, this should have been fixed in 5.2 with the underscored `@_hasMissingDesignatedInitializers` attribute.

@swift-ci
Copy link
Collaborator Author

Comment by leavez (JIRA)

@harlanhaskins Still got errors on Xcode 11.4.

I tested with RxSwift. Just build a framework with `BUILD_LIBRARY_FOR_DISTRIBUTION = YES`, and delete the *.swiftmodule files in the generated framework. Then import the framework to a new blank project, build and result in errors.

@swift-ci
Copy link
Collaborator Author

Comment by leavez (JIRA)

This bug stop us from delivering pre-built frameworks for different Xcode versions. The module stability feature never works from this point of view.

@harlanhaskins
Copy link
Collaborator

Drat. Looks like we missed a few cases. @nkcsgexi is the owner for module interfaces. Xi, can you take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself textual interfaces unexpected error Bug: Unexpected error
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants