Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to fix the issue "Command /bin/sh failed with exit code 1" in iphone

I used a cocoa static library in my application. When I compile my library I got the following error:

Shell Script invocation error:can't open input file:
/Users/sijuthomas/Library/Developer/Xcode/DerivedData/SCXML2-
    bbttehupryhijphhjdiemcytkvgy/Build/Products/Debug-iphonesimulator/
    libSCXMLParser.a (No such file or directory)
Command /bin/sh failed with exit code 1

Screenshot for error

How can I fix this?

like image 742
Ben10 Avatar asked Oct 22 '12 07:10

Ben10


3 Answers

 Target -> Build-Phases -> update examples

Click On Run checkbox if not selected.

like image 188
Harshad Avatar answered Nov 01 '22 04:11

Harshad


I had this issue because i denied keychain access and in order to solve it you need to open keychain, Then click on the lock on top right of the screen to lock it again, after that you can archive and it will work

like image 43
Salem Binmusaed Avatar answered Nov 01 '22 05:11

Salem Binmusaed


Deleting "Derived Data" worked for me.

In Xcode go to File > Workspace Settings > Click the arrow next to the Derived Data file path > move the "Derived Data" folder to the trash.

like image 43
hgwhittle Avatar answered Nov 01 '22 03:11

hgwhittle