Xcode引用旧框架 [英] Xcode referencing old framework

查看:93
本文介绍了Xcode引用旧框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将最新版本的框架添加到我的Xcode项目中,但似乎无法让Xcode忽略旧版本。

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.

我有从项目中删除了框架并删除了Link Binary With Libraries部分中的列表。然后,我从Mac中删除旧框架的每个实例,并重置模拟器中的内容和设置。我清理我的项目并删除派生数据。然后我下载新版本的框架并像往常一样拖放它。一切似乎都正常链接,项目再次构建没有错误。我转到使用新框架中的组件的视图,并且还有一个大的试用版水印,并查询框架自己的[getInfo]函数返回旧的框架版本。

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?

推荐答案

原来是自动框架搜索Xcode确实在其他目录中的项目的其他版本中定位旧框架。真是令人头疼。

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.

这篇关于Xcode引用旧框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆