Jace
Jace

Reputation: 145

Xcode referencing old framework

I'm trying to add the newest version of a framework to my Xcode project but can't seem to get Xcode to ignore the old one.

I have deleted the framework from the project and removed its listing in "Link Binary With Libraries" section. I then delete every instance of the old framework from my Mac and reset content and settings within the simulator. I clean my project and delete derived data. I then download the new version of the framework and drag and drop it in as usual. Everything appears to link up normally and the project builds without errors again. I go to the view that uses components from the new framework and a big "Trial Version" watermark is still on it and querying the frameworks own [getInfo] function returns the old framework version.

How do I go about completely deleting all reference to this framework? How is it still being built into the project when it no longer exists on my hard drive and I have wiped all the cached data from previous builds and linked a completely new framework from a different location?

Upvotes: 2

Views: 1430

Answers (2)

mcknut
mcknut

Reputation: 113

I had a similar problem to this and the fix was to look in the Build Settings for my project's target. Under Framework Search Paths was an old entry, pointing at an old copy of the framework. Removing this ensured that it used the latest framework.

Upvotes: 3

Jace
Jace

Reputation: 145

It turned out to be the automatic framework searching that Xcode does locating the old framework in other versions of the project in other directories. What a headache.

Upvotes: -2

Related Questions