Shell脚本调用错误命令/ bin / sh失败,退出代码为1

时间:2017-12-04 10:22:18

标签: ios

我收到shell脚本调用错误命令/ bin / sh失败,Xcode 9.1中出现退出代码1错误。

确切地说它工作正常,但是它收到了错误...... 我试图删除派生数据,但在此之后它也会出错。 任何人都可以帮我解决这个错误...

mkdir -p /Users/developement/Library/Developer/Xcode/DerivedData/App Name-elbnnhecajvuocajithvpcwntcof/Build/Products/Release-iphoneos/App Name.app/Frameworks
rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/developement/Library/Developer/Xcode/DerivedData/App Name-elbnnhecajvuocajithvpcwntcof/Build/Products/Release-iphoneos/IQKeyboardManager/IQKeyboardManager.framework" "/Users/developement/Library/Developer/Xcode/DerivedData/elbnnhecajvuocajithvpcwntcof/Build/Products/Release-iphoneos/App Name.app/Frameworks"
building file list ... done
IQKeyboardManager.framework/
IQKeyboardManager.framework/IQKeyboardManager
IQKeyboardManager.framework/Info.plist
IQKeyboardManager.framework/IQKeyboardManager.bundle/
IQKeyboardManager.framework/IQKeyboardManager.bundle/IQButtonBarArrowDown@2x.png
IQKeyboardManager.framework/IQKeyboardManager.bundle/IQButtonBarArrowDown@3x.png
IQKeyboardManager.framework/IQKeyboardManager.bundle/IQButtonBarArrowLeft@2x.png
IQKeyboardManager.framework/IQKeyboardManager.bundle/IQButtonBarArrowLeft@3x.png
IQKeyboardManager.framework/IQKeyboardManager.bundle/IQButtonBarArrowRight@2x.png
IQKeyboardManager.framework/IQKeyboardManager.bundle/IQButtonBarArrowRight@3x.png
IQKeyboardManager.framework/IQKeyboardManager.bundle/IQButtonBarArrowUp@2x.png
IQKeyboardManager.framework/IQKeyboardManager.bundle/IQButtonBarArrowUp@3x.png

sent 631432 bytes  received 252 bytes  1263368.00 bytes/sec
total size is 630553  speedup is 1.00

Code Signing /Users/developement/Library/Developer/Xcode/DerivedData/App Name-elbnnhecajvuocajithvpcwntcof/Build/Products/Release-iphoneos/App Name.app/Frameworks/IQKeyboardManager.framework with Identity iPhone Developer: Developer ID
/usr/bin/codesign --force --sign 4A6D63EB1880BC5B617BFF614E2D009066DF1E  --preserve-metadata=identifier,entitlements '/Users/developement/Library/Developer/Xcode/DerivedData/App Name-elbnnhecajvuocajithvpcwntcof/Build/Products/Release-iphoneos/App Name.app/Frameworks/IQKeyboardManager.framework'
/Users/developement/Library/Developer/Xcode/DerivedData/App Name-elbnnhecajvuocajithvpcwntcof/Build/Products/Release-iphoneos/App Name.app/Frameworks/IQKeyboardManager.framework: unknown error -1=ffffffffffffffff
Command /bin/sh failed with exit code 1

我在设备中运行时才会出现此错误。如果我在模拟器中运行它可以正常工作。

1 个答案:

答案 0 :(得分:4)

就我而言:

  1. 清洁产品
  2. 清理构建文件夹
  3. 从Xcode打开衍生数据文件夹
  4. 退出XCode
  5. 删除派生数据
  6. 也可以从“废纸篓”中删除衍生数据
  7. 打开Xcode
  8. 运行您的应用
  9. 如果这不能解决您的问题,请删除您的帐户并使用以下步骤重新添加:

    1. 从XCode菜单中打开首选项
    2. 转到帐户
    3. 在Apple ID
    4. 下选择您的开发者帐户
    5. 删除该帐户
    6. 重新添加您的帐户
    7. 这可以解决您的问题。