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-12458] trap 6 while compiling a xcframework #54897

Closed
swift-ci opened this issue Mar 30, 2020 · 8 comments
Closed

[SR-12458] trap 6 while compiling a xcframework #54897

swift-ci opened this issue Mar 30, 2020 · 8 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself xcframework

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-12458
Radar rdar://problem/61069357
Original Reporter oliver.epper (JIRA User)
Type Bug
Status Closed
Resolution Done

Attachment: Download

Environment

Xcode 11.4

Additional Detail from JIRA
Votes 2
Component/s Compiler
Labels Bug, xcframework
Assignee @eeckstein
Priority Medium

md5: 27e8bb6b4761a49989bbc07479a44950

Issue Description:

The compiler fails to compile the following code if it sits inside a xcframework.

```Swift
import Foundation
import Combine

public enum RecorderState: String {
case idle = "Idle"
case recording = "Recording"
case monitoring = "Monitoring"
}

public class BaseRecorder: NSObject, ObservableObject {
@published public var state = RecorderState.idle

func start() {
state = .recording
}
}

public class AutomaticRecorder: BaseRecorder {

override func start() {
super.start()
}
}
```

@typesanitizer
Copy link

@swift-ci create

@typesanitizer
Copy link

Thanks for providing a reduced test case!

@eeckstein
Copy link
Member

oliver.epper (JIRA User) I could not reproduce this. Can you provide a complete self contained project, which shows the issue?

@swift-ci
Copy link
Collaborator Author

swift-ci commented Apr 1, 2020

Comment by Oliver Epper (JIRA)

Hi @eeckstein,

Sure. Here your are. Please see EricFramework.

@eeckstein
Copy link
Member

Thanks!
Reproduced.

@swift-ci
Copy link
Collaborator Author

Comment by Patrick Pöchhacker (JIRA)

Is this still an issue in Xcode 11.4.1?

@swift-ci
Copy link
Collaborator Author

Comment by Oliver Epper (JIRA)

It's resolved in Xcode 12 😃

@swift-ci
Copy link
Collaborator Author

Comment by Oliver Epper (JIRA)

Works in Xcode 12 😃

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
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 xcframework
Projects
None yet
Development

No branches or pull requests

3 participants