对project.pbxproj文件中已删除框架的引用 [英] References to Removed Framework in project.pbxproj File

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

问题描述

我最近从我的iOS项目中删除了一个框架,而是通过依赖项管理器(CocoaPods)来安装它.但是,当我检查对源代码管理的更改时,我注意到删除了对框架的某些引用,但是添加了一个带有绝对路径的引用.从差异中(第一行已删除,第二行已添加到我的项目文件中):

I recently removed a framework from my iOS project and am installing it instead through a dependency manager (CocoaPods). I noticed, however, when checking my changes in to source control that some references to the framework were removed, but one was added with an absolute path. From the diff (the first line was removed and the second line added to my project file):

-       767C7EC51DB295CE00A8850F /* TealiumIOSLifecycle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = TealiumIOSLifecycle.framework; sourceTree = "<group>"; };
+       767C7EC51DB295CE00A8850F /* TealiumIOSLifecycle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = TealiumIOSLifecycle.framework; path = /Users/jal/workspace/com.myapp/MyApp/Shared/ThirdParty/TealiumIOSLifecycle.framework; sourceTree = "<absolute>"; };

本地计算机上的该路径上没有文件,并且我能够在单独的目录中以及具有不同目录结构的其他计算机上进行全新克隆,并且能够在没有任何警告或错误的情况下构建项目.框架的物理文件不再存在于项目目录中(当我在Xcode中从项目中删除文件时,我选择了移至垃圾箱".

There is no file at that path on my local machine, and I was able to make a fresh clone in a separate directory and on other machines with a different directory structure and was able to build the project without any warnings or errors. The physical file of the framework no longer exists in the project directory (when I removed the file from the project in Xcode, I chose "move to trash).

这正常吗?如果没有,该如何删除这些引用?

Is this normal? If not, how can I remove these references?

要清楚,项目中的任何地方都没有对此框架的引用.这包括链接框架和库,链接二进制与库,目标依赖项,嵌入框架等.

To be clear, there are no references to this framework anywhere in the project. This includes Linked Frameworks and Libraries, Link Binary with Libraries, Target Dependencies, Embed Frameworks, etc.

推荐答案

在xcode中点击项目文件,然后在 General 标签中向下滚动,并检查以下各节中是否未包含

Tap on your project file in xcode and in the General tab scroll down and check that it is not included in the following sections

缺少的框架可能用红色突出显示(或者我不记得确切地用灰色褪色)

The missing frameworks would be probably highlighted in red (or faded in gray i don't remember exactly)

还在构建阶段中检查是否未尝试复制

Also in the build phases check it's not being tried to be copied

这篇关于对project.pbxproj文件中已删除框架的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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