ios – Xcode project does not recognise changes in custom framework


I have created two projects in Xcode:

  • Framework. It just has one public class and one public method
  • Xcode project.

I have drag and dropped my framework into project. After that, framework was automatically added into General tab of the target and Build Phases’s Link Binary With Libraries. I just needed to changed to Embed & Sign in General’s Frameworks, Libraries, and Embedded Content.

Then I went to my ViewController, added:

import MyCustom_Framework

After that, I have created an instance of my class and called it’s only method in viewDidLoad, and it worked fine:

let customClass = MyCustom_Class()
    
override func viewDidLoad() {
    super.viewDidLoad()
     
    customClass.someMethod(text: "Something") //someMethod is a method name
}

Then, I went back to my Framework, and changed the method name from someMethod to anotherMethod.

Xcode does not succeed to recognise that change. I have tried to delete derived data, clean and build the framework again, removing framework from the project and re-adding it again. Nothing helped.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img