D
D
deleted-mezhevikin2015-12-03 13:06:29
Objective-C
deleted-mezhevikin, 2015-12-03 13:06:29

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

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

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
deleted-mezhevikin, 2015-12-03
@deleted-mezhevikin

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 question

Ask a Question

731 491 924 answers to any question