There is a task - to make several Swift classes in the form of a compiled framework.
On a githaba there is a project that shows how to create a framework containing a swift class - https://github.com/crspybits/CocoaTouchFramework .
In the example of this project, the connection framework goes through the import of the xcode project.
I created a new swift project and added the already compiled SimpleFramework.framework from the above mentioned repository and got the error:
ViewController.swift: 12:25: 'SimpleClass' is unavailable: cannot find a Swift declaration for this class
That is, xcode does not see the SimpleClass class. What's wrong?
// // ViewController.swift // import UIKit import SimpleFramework @objc class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() var object = SimpleClass("fwe") } } My test project on github: https://github.com/nullproduction/TestApp