Answer the question
In order to leave comments, you need to log in
Why doesn't Xcode see the Swift class in the compiled framework?
There is a task - to make several Swift classes in the form of a compiled framework.
There is a project on github showing how to create a framework containing a swift class - https://github.com/crspybits/CocoaTouchFramework .
In the example of this project, the connection of the framework goes through importing the xcode project.
I created a new swift project and added the already compiled SimpleFramework.framework there from the above mentioned repository and got an error:
ViewController.swift:12:22: 'SimpleClass' is unavailable: cannot find Swift declaration for this class
//
// ViewController.swift
//
import UIKit
import SimpleFramework
@objc class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
var object = SimpleClass("fwe")
}
}
Answer the question
In order to leave comments, you need to log in
User Max Mikheyenko suggested a solution to this problem on stackoverflow: ru.stackoverflow.com/a/471633/14865
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question