iOS Swift No Such File or Directory In Debug-iphoneos

旧时模样 提交于 2020-01-01 11:52:07

问题


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.

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


回答1:


I have similar issues in the past and doing the following work for me. Hope your problem is same as mine:

  1. Close xCode
  2. Go to this folder Group /Users/arthuraraujo/Library/Developer/Xcode/DerivedData/Anti-Social_Club-gizjofrkxroutxezxlbuadlvpwbo/Build/Products/Debug-iphoneos/ and delete Anti-Social.
  3. Restart xCode, clean & build.



回答2:


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.




回答3:


Possible duplicate of: Xcode 8 Shell Script Invocation Error

Here is what I did when I got this:

  1. 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
  2. Re-installed current stable version of cocoapods (v1.1.1 for me)
  3. Deleted podlock and pods directory
  4. Deleted old .xcworkspace file (this was key for me).
  5. Did "pod install"
  6. Opened xcode and cleaned project and deleted derivedData.



回答4:


Go to your build phases and remove libReact.a from the linked libraries.

Then add libReact.a but select this one:

libReact.a from 'React' target in 'Pods' project



来源:https://stackoverflow.com/questions/40434184/ios-swift-no-such-file-or-directory-in-debug-iphoneos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!