After transferring some code to an external structure, I tried to import and use the framework in my application. I added the framework as a dependency in my application.
My structure is called DiceKit. In one of the classes, just to check, I added import DiceKitto the beginning of my file. This does not cause errors.
When I try to access classes that should be within the framework, I get the error "Error using unresolved identifier."
import UIKit
import DiceKit
class FirstViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
println (Die(12).roll())
}
}
What could be the reason that classes in the structure will not be compiled? I made sure that all classes and methods are marked by the public, and I did not change any default build settings in my structure.
XCode 6.3 Betaββp >
!