【发布时间】:2020-10-29 23:05:22
【问题描述】:
我有一个 iphone 应用程序(Swift 项目),它曾经使用旧版本的 XCode 构建,但我已经一年没有构建它(我更新了我的 XCode),现在我无法构建它。在谷歌搜索问题后,我尝试了所有我发现的东西。每次我尝试构建它时都会收到此错误:
unable to spawn process (No such file or directory) (in target 'CombineDataSources' from project 'Pods')
当我尝试构建项目时,我没有收到任何其他错误,只有这个。 我尝试清理构建文件夹,删除所有 pod(Library/Cashes/CocoaPods/Pods),删除派生数据(Library/Developer/XCode/DerivedData),删除 xcworkspace 文件,然后在终端中运行 pod deintegrate 命令,然后运行 pod install终端中的命令。
Analyzing dependencies
Downloading dependencies
Installing CombineDataSources (0.2.2)
...
Generating Pods project
Integrating client project
Pod installation complete! There are 14 dependencies from the Podfile and 20 total pods installed.
Podfile(包含 Xcode 错误一部分的包的部分):
pod 'CombineDataSources', '~> 0.2.2'
Podfile.lock(包含 Xcode 错误的包的部分):
PODS:
- CombineDataSources (0.2.2)
DEPENDENCIES:
- CombineDataSources (~> 0.2.2)
SPEC REPOS:
trunk:
- CombineDataSources
SPEC CHECKSUMS:
CombineDataSources: 2315365365i8746865375
所有 pod 都已成功安装,没有错误,没有警告,但我的项目仍然出现无法生成进程错误。有人知道我还能尝试什么吗?任何帮助,任何建议将不胜感激!
【问题讨论】:
-
检查 'CombineDataSources' 目标,它是否取决于位置已更改的内容。 Something like this
-
感谢您的帮助,我试着检查一下。但是,我认为如果我使用的是 cocoapods,我不需要担心我使用的包依赖于哪些包:“CocoaPods 将解决库之间的依赖关系,获取生成的源代码,然后在 Xcode 中将它们链接在一起工作区来构建您的项目。”我什至找不到 CombineDataSources 依赖的包。您附加的链接中的开发人员正在使用 npm。顺便说一句,我已经尝试过他们在本文中提到的所有内容,但他们没有帮助:/
-
从 pod 'CombineDataSources', '~> 0.2.2' 中删除版本参考 0.2.2,使用简单的 pod 'CombineDataSources',然后安装 pod。看看是否能解决您的问题。
-
谢谢@ares777,但没有帮助:/我得到同样的错误
-
有人告诉 Open 'File -> Workspace Settings' 并将 Build System 设置为 Legacy Build System。我想现在你选择了新的构建系统