Gaurav Pandey Gaurav Pandey - 1 year ago 182
Swift Question

Command /bin/sh failed with exit code 1 and Embeded pods framework

Not able to identified actual issue, During updating coco pod getting a message "Re-creating CocoaPods due to major version update."
(that was come only once) and pod updation is successful. After on build i am getting the error. Command /bin/sh failed with exit code 1.
Below is some detail also which i am getting

  1. Code Signing /Users/Gaurav/Library/Developer/Xcode/DerivedData/Appname-******/Build/Products/Debug-iphoneos/ with Identity iPhone Developer: Account Name (Account Id)

  2. /usr/bin/codesign --force --sign ***************** --preserve-metadata=identifier,entitlements "/Users/UserName/Library/Developer/Xcode/DerivedData/Appname-***************/Build/Products/Debug-iphoneos/"

  3. /Users/Username/Library/Developer/Xcode/DerivedData/Appname-************/Build/Products/Debug-iphoneos/ bundle format unrecognized, invalid, or unsuitable

I'm using iOS 8 as deployment target and XCode 7.3.1
I have checked code signing identity that doesn't have any issue. I have reinstall again all pod and Alamofire also but not abel to identified issue. Please help. Thanks in advance.

Answer Source

Clean the project, and deleting the derived data (~/Library/Developer/Xcode/DerivedData/) fixed it for me

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download