Chandan
Chandan

Reputation: 15

Command bin/sh failed with exit code 1 Unrecognized arguments:

This is screen shot of run script

this is screen shot of run script

I am trying to archive the project, i am getting an error "Command bin/sh failed with exit code 1", but it is working on simulator and device

Unrecognized arguments: "/Users/macbookpro/Library/Developer/Xcode/DerivedData/RuleDemo-bhlsqxvcvoalgyecxruhhzlqpmmp/Build/Intermediates/ArchiveIntermediates/RuleDemo/IntermediateBuildFilesPath/RuleDemo.build/Release-iphoneos/RuleDemo.build/Script-52FE86C320B541F900CA5756.sh" Command /bin/sh failed with exit code 1

Upvotes: 1

Views: 1281

Answers (1)

l'L'l
l'L'l

Reputation: 47159

This is a problem with the Carthage Run Script. It can usually be resolved by adding another Run Script to Build Phases:

/usr/local/bin/carthage outdated --xcode-warnings

Place this Run Script before the others; This script should automatically warn you when one of your dependencies is out of date.

Another thing that I might help is to uncheck "Run script only when installing".

Upvotes: 1

Related Questions