Reputation: 11598
I'm making a framework using iOS-Universal-Framework.
All has been working well for a few days, but today I decided to change a method signature. Xcode seems to have cached the old version of my library/framework, and I can't get it to see my new code for anything. Although the header it presents has the correct signature, the compiler (and autocomplete) do NOT see the correct signature.
I've tried changing the Framework version and Current Library/Compatibility versions of my custom framework. I've cleaned both projects a bunch. Deleted Derived Data. Closed Xcode. Etc...
This is really, really frustrating, as I've now wasted almost 2 hours just trying to get Xcode to behave!
Has anyone encountered this error before? Does anyone know how to get Xcode to see the code I've actually written?
Upvotes: 0
Views: 704
Reputation: 313
I faced a similar problem but found a cached version of my custom framework in the same folder as my project output.
Here are the steps I took to resolve it:
In my case there was no need to change framework search paths or remove the custom framework from the project.
Upvotes: 1
Reputation: 11598
Gaaahhhhhhh! Why is it always, ALWAYS, that I search forever and don't find an answer. Then, I post a question on StackOverflow and then find the answer myself in 2 minutes?
So irritating!
I solved my problem by doing the following:
I'm still not sure I understand all of the intricacies of how/why Xcode does what it does, but at least now my real code is seen and run!
So, I search on "xcode disable automatic framework searching" and found Xcode referencing old/removed framework, causing multiple interface declarations.
I hope this at least helps someone else get their answer faster.
Upvotes: 0