xcode iOS Swift 在 Debug-iphoneos 中没有这样的文件或目录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40434184/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iOS Swift No Such File or Directory In Debug-iphoneos
提问by wafflez180
Somebody please save me.
有人请救救我。
This is the error I'm getting. I've tried cleaning, doing a build clean, pod installs and updates. I have not found a solution.
这是我得到的错误。我尝试过清理、清理构建、pod 安装和更新。我还没有找到解决办法。
Shell Script Invocation Error Group /Users/arthuraraujo/Library/Developer/Xcode/DerivedData/Anti-Social_Club-gizjofrkxroutxezxlbuadlvpwbo/Build/Products/Debug-iphoneos/Anti-Social: No such file or directory
Shell脚本调用错误组/Users/arthuraraujo/Library/Developer/Xcode/DerivedData/Anti-Social_Club-gizjofrkxroutxezxlbuadlvpwbo/Build/Products/Debug-iphoneos/Anti-Social:没有这样的文件或目录
采纳答案by Kenny Lim
I have similar issues in the past and doing the following work for me. Hope your problem is same as mine:
我过去有类似的问题,并为我做了以下工作。希望你的问题和我的一样:
- Close xCode
- Go to this folder Group /Users/arthuraraujo/Library/Developer/Xcode/DerivedData/Anti-Social_Club-gizjofrkxroutxezxlbuadlvpwbo/Build/Products/Debug-iphoneos/ and delete Anti-Social.
- Restart xCode, clean & build.
- 关闭 xCode
- 转到此文件夹 Group /Users/arthuraraujo/Library/Developer/Xcode/DerivedData/Anti-Social_Club-gizjofrkxroutxezxlbuadlvpwbo/Build/Products/Debug-iphoneos/ 并删除 Anti-Social。
- 重新启动 xCode,清理并构建。
回答by elprl
Possible duplicate of: Xcode 8 Shell Script Invocation Error
可能重复: Xcode 8 Shell Script Invocation Error
Here is what I did when I got this:
当我得到这个时,这是我所做的:
- Used this site to completely remove All Versions of cocoapods: https://superuser.com/questions/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine
- Re-installed current stable version of cocoapods (v1.1.1 for me)
- Deleted podlock and pods directory
- Deleted old .xcworkspace file (this was key for me).
- Did "pod install"
- Opened xcode and cleaned project and deleted derivedData.
- 使用此站点完全删除所有版本的 cocoapods:https://superuser.com/questions/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine
- 重新安装当前稳定版本的 cocoapods(v1.1.1 对我来说)
- 删除 podlock 和 pods 目录
- 删除旧的 .xcworkspace 文件(这对我来说很关键)。
- “吊舱安装”了吗
- 打开 xcode 并清理项目并删除衍生数据。
回答by Jacob Boyd
It is hard to really tell you the solution with just the information provided. However, the first thing I would try is deleting the derived data, as CodeBender stated. You should also look at your search paths in your project's building settings to make sure your pods are correct/ connecting your pods files to your project.
仅凭提供的信息很难真正告诉您解决方案。但是,正如 CodeBender 所说,我会尝试的第一件事是删除派生数据。您还应该查看项目构建设置中的搜索路径,以确保您的 pod 正确/将您的 pod 文件连接到您的项目。
回答by ANKIT-DETROJA
Go to your build phases and remove libReact.a from the linked libraries.
转到您的构建阶段并从链接库中删除 libReact.a。
Then add libReact.a but select this one:
然后添加 libReact.a 但选择这个:
libReact.a from 'React' target in 'Pods' project
来自“Pods”项目中“React”目标的 libReact.a