Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Swift No Such File or Directory In Debug-iphoneos

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

like image 277
wafflez180 Avatar asked Nov 05 '16 02:11

wafflez180


3 Answers

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.
like image 155
Kenny Lim Avatar answered Nov 10 '22 03:11

Kenny Lim


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.

like image 30
Jacob Boyd Avatar answered Nov 10 '22 01:11

Jacob Boyd


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.
like image 1
elprl Avatar answered Nov 10 '22 02:11

elprl