0

After upgrading to Xcode 9.2 this error appears in all of my projects:

Command /bin/sh failed with exit code 1

enter image description here

Error actually appears when running on a real device, but in simulator it runs normally.

Anyone has a solution?

informatik01
  • 16,038
  • 10
  • 74
  • 104
zeina reda
  • 11
  • 2

1 Answers1

0
  • try to remove the derived data(from trash too)
  • product clean (cmd+shift+k)
  • restart the Xcode
sathya26d
  • 1
  • 4
  • no error actually appear when run on real device but on simulator run normally – zeina reda Dec 29 '17 at 14:46
  • May be your Alamofire framework is just only built for real devices. For simulators needs a separate framework(simulators architecture is different). Check your framework – sathya26d Dec 29 '17 at 14:49
  • i don't think so as in project have many frame work not only alamofire – zeina reda Dec 29 '17 at 15:25
  • just remove and add the frameworks again. If you're using pod, execute pod install – sathya26d Dec 29 '17 at 15:35
  • Finalllllly :D , I SOLVED issues if any one this issue face like me on xCode 9.2 Go to ~/Library/Keychains delete this Folder and install Xcode Again Thank you for all of you with support – zeina reda Jan 01 '18 at 14:59