Jon Erickson
Jon Erickson

Reputation: 1976

iOS build failure; /bin/sh No such file or directory

I was working on my application and then out of no where, I get this build error and can't figure out why it won't go away. Obviously it thinks I am missing a script of some sort. Anybody else know why? I am using Xcode 4.5.1.

/bin/sh: /Users/JonErickson/Library/Developer/Xcode/DerivedData/FireCom-cygbnsedlgybvdewalvvmzqeehlc/Build/Intermediates/FireCom.build/Debug-iphonesimulator/FireCom.build/Script-C8CC6BE415FAAB4C001BB67E.sh: (null): bad interpreter: No such file or directory

Upvotes: 16

Views: 19603

Answers (3)

Badam Baplan
Badam Baplan

Reputation: 270

I've encountered this a number of times because my DerivedData isn't current with my work. I've never understand the logic for when it does and does not keep track of changes I'm making... but since the script is trying to run from an archive in the derived data, you'll need to make sure the script is actually present. To do this, delete your derived data (or at least the directory containing your script) and then build again. Xcode will fill in the gap(s). You can get quick access to Derived Data by navigating to the File menu and then going to Project Settings (or Workspace Settings accordingly) and following the link to your finder. Just trash it.

Upvotes: 0

Khulja Sim Sim
Khulja Sim Sim

Reputation: 3559

I had renamed my app, and got into this error. In various places, I changed the name but couldn't find at one spot .. - in Target's build setting file.

Cmd + Shift + F to find in whole project. searched for old App name string. Found places where old name was still stuck, updated it with new name.

enter image description here

Upvotes: 2

Michael Dautermann
Michael Dautermann

Reputation: 89509

Check for a potentially corrupt "run script" phase in your project's "build phases".

It should look something like this:

Build Phase

Upvotes: 21

Related Questions