Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

bin/sh fails with exit code 2

Anyone else get this? I've had Xcode working before, did a reinstall, and all of my certificates/provisioning is fine. Anyone have any suggestions?

— asked November 14th 2010 by Josh Lewis
  • 2
  • code
  • error
  • exit
  • iphone

3 Answers

  • Im not sure either .. but im now getting the same error. Never had an issue previously.

    Ti Developer / Ti Studio Xcode compiled … Run in Xcode 3 and xCode 4.. all same result.

    Anyone with ideas?

    — answered April 28th 2011 by Dana Dodge
  • I just got this error, anyone find a fix to it? I can run in the emulator. But will not run on device

    — answered November 13th 2011 by Mark Crippen
  • Xcode will show you what the problem is, usually. When Xcode fails on build, you can click the exclamation point in a red circle and it will take you to the log. In a line or two above the "failed with exit code 2" will give you your answer.

    In my experience, the most common culprit is a PNGCrush error, where PNGCrush thinks one of your images is corrupted. This is easily fixed by opening the image file in an editor and resaving it (you don't even have to do anything, just tell the editor to "Save As…" and select the file and confirm the overwrite).

    — answered December 7th 2011 by Shauna Gordon
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.