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-913] Extension Nested Type Linking Bug #43525

Closed
an0 mannequin opened this issue Mar 10, 2016 · 2 comments
Closed

[SR-913] Extension Nested Type Linking Bug #43525

an0 mannequin opened this issue Mar 10, 2016 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler itself

Comments

@an0
Copy link
Mannequin

an0 mannequin commented Mar 10, 2016

Previous ID SR-913
Radar None
Original Reporter @an0
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Additional Detail from JIRA
Votes 2
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: b3107e1d63d2c9aa219da2fa13be7964

Issue Description:

Linking error for public extension's nested type from framework:

Undefined symbols for architecture armv7:
"type metadata for (extension in Framework):__ObjC.UIView.Foo", referenced from:
App.ViewController.viewDidLoad () -> () in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Compile the sample app to see the details.

@swift-ci
Copy link
Contributor

swift-ci commented Jul 6, 2016

Comment by Brett Park (JIRA)

I can confirm this issue. It appears when creating a type such as an enum or struct within an extension to an objective-c library. It requires optimization to be turned on.

Some similar confirmations:
SwiftGen/SwiftGen#57
https://twitter.com/aligatr/status/669970159529025536
https://forums.developer.apple.com/thread/45236

@an0
Copy link
Mannequin Author

an0 mannequin commented Jul 8, 2016

Just verified it is fixed in Swift 3 and Xcode 8.

@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 itself
Projects
None yet
Development

No branches or pull requests

1 participant