Failure of iOS Build Phase "Run Script" with "Unrecognized arguments"

ios

#1

Hi,

8 days ago our iOS Builds started to fail when executing a “Run Script” with the following error:

bin/sh -c /Users/distiller/Library/Developer/Xcode/DerivedData/AppName-hkcsiqactntdaifazeptobxpflpz/Build/Intermediates/AppName.build/Debug-iphonesimulator/AppName.build/Script-4C8E8A961BBED0A4006870CC.sh
Unrecognized arguments: "/Users/distiller/Library/Developer/Xcode/DerivedData/AppName-hkcsiqactntdaifazeptobxpflpz/Build/Intermediates/AppName.build/Debug-iphonesimulator/AppName.build/Script-4C8E8A961BBED0A4006870CC.sh"
Command /bin/sh failed with exit code 1

It looks like the sh-call itself is broken in a way. Before it worked without any change on the script or Build Phase configuration (here an example of the fabric script):

/bin/sh -c /Users/distiller/Library/Developer/Xcode/DerivedData/AppName-hkcsiqactntdaifazeptobxpflpz/Build/Intermediates/AppName.build/Debug-iphonesimulator/AppName.build/Script-49F8CDC31A766A3900073198.sh
2016-02-08 16:36:40.584 uploadDSYM[979:7055] Fabric.framework/run 1.4.0

Does anyone have an idea?

Thanks,
Matthias


#2

The error came from a new Carthage version that was pulled during the circleci run and wasn´t installed locally. With this Carthage version the Run Script part changed.


#3