I’ve created two tasks in Xcode:
- Framework. It simply has one public class and one public methodology
- Xcode challenge.
I’ve drag and dropped my framework into challenge. After that, framework was routinely added into Common tab of the goal and Construct Phases’s Hyperlink Binary With Libraries
. I simply wanted to modified to Embed & Signal
in Common’s Frameworks, Libraries, and Embedded Content material
.
Then I went to my ViewController, added:
import MyCustom_Framework
After that, I’ve created an occasion of my class and known as it is solely methodology in viewDidLoad, and it labored nice:
let customClass = MyCustom_Class()
override func viewDidLoad() {
tremendous.viewDidLoad()
customClass.someMethod(textual content: "One thing") //someMethod is a technique identify
}
Then, I went again to my Framework, and adjusted the strategy identify from someMethod
to anotherMethod
.
Xcode doesn’t succeed to recognise that change. I’ve tried to delete derived information, clear and construct the framework once more, eradicating framework from the challenge and re-adding it once more. Nothing helped.