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

Cannot subclass LineChartRenderer with Clang 11 #4018

Closed
1 task done
fpg1503 opened this issue Jun 7, 2019 · 1 comment
Closed
1 task done

Cannot subclass LineChartRenderer with Clang 11 #4018

fpg1503 opened this issue Jun 7, 2019 · 1 comment

Comments

@fpg1503
Copy link

fpg1503 commented Jun 7, 2019

What did you do?

ℹCreate a new Xcode Project (i.e. Single View iOS Application)
ℹ Build a framework out of v3.2.0
ℹ Create an iOS Framework Target
ℹ Create a file inside this Target that subclasses LineChartRenderer
ℹ Create a bridging header on the Application Target that imports the generated Objective-C framework module header
ℹ Build

What did you expect to happen?

ℹ The application builds and runs just fine

What happened instead?

ℹ Clang emits the following error:
<#DerivedDataPath#>/<#DebugProduct#>/ChartsFramework.framework/Headers/ChartsFramework-Swift.h:204:22: Cannot find interface declaration for 'LineChartRenderer', superclass of 'Trigger'

Charts Environment

Charts version/Branch/Commit Number: 3.2.0 (also happens on 3.3.0, but 3.2.0is better to highlight the issue since I can build in on older versions of Xcode just fine)
Xcode version: Version 11.0 beta (11M336w)
Swift version: Apple Swift version 5.1 (swiftlang-1100.0.38.29 clang-1100.0.20.14)
Clang version: Apple clang version 11.0.0 (clang-1100.0.20.17)
Platform(s) running Charts: iOS
macOS version running Xcode: macOS Mojave Version 10.14.5 (18F132)

Demo Project

https://github.com/fpg1503/ObjectiveCModuleBug

Notes

ℹ This seems to be a bug in the Clang Compiler, I've already filed a radar but I thought it'd be interesting to share it here in case anyone stumbles upon the same issue.

@liuxuan30
Copy link
Member

liuxuan30 commented Jun 10, 2019

have you tried #4017?

Cannot find interface declaration for 'LineChartRenderer', superclass of 'Trigger'

this seems super weird to me about the superclass.

tip: as this is in very early beta phases, and it's usually broken LOL. I don't suggest try it until it's public seed.

I have to archive Xcode 11 beta related issues if no solution is found so far, as we usually have to postpone until Sep based on our experience, so we can fix everything once and for all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants