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-12954] Missing interface declaration for Swift module in generated header #4536

Open
swift-ci opened this issue Jun 8, 2020 · 1 comment
Labels

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Jun 8, 2020

Previous ID SR-12954
Radar rdar://problem/64118078
Original Reporter turtlemaster19 (JIRA User)
Type Bug

Attachment: Download

Environment

macOS 10.15.4, Xcode 11.5.0

Additional Detail from JIRA
Votes 0
Component/s Compiler, Package Manager
Labels Bug, PrintAsObjC
Assignee None
Priority Medium

md5: 143f3c31f5a811bbf4bdd3dd195b1e60

Issue Description:

Related to https://bugs.swift.org/browse/SR-805 but Objective-C++ is not directly involved.

In a Swift package (ZKDrawerController) that I am using, there is the following line:

open class ZKDrawerController: UIViewController, ZKDrawerControllerDelegate {

Then, I extend the class (after importing the package with import ZKDrawerController) using this line (which ends up being two since it's so long):

public class ReviewContainerViewController: ZKDrawerController, ReviewControllerDelegate, ReviewMenuDelegate {

However, when compiling, the following error occurs in the generated header, a file "included from" an Objective-C++ file:

Cannot find interface declaration for 'ZKDrawerController', superclass of 'ReviewContainerViewController'

Since it ultimately derives from UIViewController, I can't mark it private (since I need to use it in other files) nor can I mark it @nonobjc.

Removing Objective-C++ from the project in any way, or not including the generated header in it removes the issue.

@swift-ci
Copy link
Contributor Author

swift-ci commented Jun 8, 2020

Comment by Matthew Benedict (JIRA)

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants