1

我正在通过此链接执行所有步骤,并在完成时出现此错误"Command /bin/sh failed with exit code 1"

这个项目的架构是armv7 armv7s。有人有这个问题吗?

4

1 回答 1

0

目前尚不清楚您的确切问题是什么,但我遇到了同样的错误,我像下面这样解决了它。

您是否尝试在从 shell 脚本构建后在模拟器上执行 monkeytalk 测试,如果是这样,您必须为模拟器 "i386" 添加架构。这是一个对我有用的命令

/usr/bin/xcodebuild -target FuncTest CODE_SIGN_IDENTITY="iPhone Distribution: xxxxxxx xxxxxxxxx" PROVISIONING_PROFILE="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX" OTHER_LDFLAGS="-lxml2 -all_load -lstdc++" DSTROOT="build" VALID_ARCHS="armv7 armv7s i386" -arch i386 -sdk iphonesimulator6.0 -configuration Release clean build install;

注意:此命令应在包含 xcode 项目文件的目录中的 shell 中执行。

于 2013-05-01T16:41:37.503 回答