Header modification - "MyClass" unavailable: cannot find Swift declaration for this class

I visited these links -

MyClass is unavailable: cannot find Swift declaration for this class - free assembly only

Adding a related or embedded Swift Framework: "MyClass" is unavailable: cannot find Swift declaration for this class

Swift: Using Private Infrastructure

But none of the above links helped me solve my problem.

I am developing the application using objective-c, in the application I integrate ios-charts , whose structure is developed in swift.I have combined the project specified in the README file. After integration, I created the MyClass.swift file and then inherited the MyClass.swift file with the class that is defined in charts.framework. But it causes an error

Class is not available: cannot find Swift declaration for this class

Does anyone help solve this error? Any suggestions?

+4
source share
4 answers

, . , . . , .

+5

, " Generic iOS Device", .

+2

@objc infront MyClass (.. @objc MyClass {...})

+1

, MyClass, "MyFramework", , "MyClass" . , iOS , , , . , .

0

All Articles