归档时 xcode 9.3 错误命令 /bin/sh 失败,退出代码为 1
Posted
技术标签:
【中文标题】归档时 xcode 9.3 错误命令 /bin/sh 失败,退出代码为 1【英文标题】:xcode 9.3 error Command /bin/sh failed with exit code 1 when archiving 【发布时间】:2018-10-11 16:57:30 【问题描述】:在我清理我的项目并删除 DerivedData 文件后,我仍然有错误。
mkdir -p /Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Intermediates.noindex/ArchiveIntermediates/Cable Park/BuildProductsPath/Release-iphoneos/Cable Park.app/Frameworks 符号链接... rsync --delete -av --filter P .*.?????? --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" - -filter “- 模块” “/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Intermediates.noindex/ArchiveIntermediates/Cable Park/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework” “/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Intermediates.noindex/ArchiveIntermediates/Cable Park/InstallationBuildProductsLocation/Applications//Cable Park.app/Frameworks” 构建文件列表...完成 Alamofire.framework/ Alamofire.framework/Alamofire Alamofire.framework/Info.plist 发送 7644058 字节 接收 70 字节 15288256.00 字节/秒 总大小为 7642892 加速为 1.00 代码签名/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Intermediates.noindex/ArchiveIntermediates/Cable Park/InstallationBuildProductsLocation/Applications//Cable Park.app/Frameworks/Alamofire.framework with Identity iPhone Developer:杰弗里·哈切兹 (YYNBZTVS5Q) /usr/bin/codesign --force --sign 3EF707F7B9FBEB2A900A4FE19B59A6EA180661DD --preserve-metadata=identifier,entitlements '/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Intermediates.noindex/ArchiveIntermediates/ArchiveIntermediates/ /InstallationBuildProductsLocation/Applications//Cable Park.app/Frameworks/Alamofire.framework' /Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Intermediates.noindex/ArchiveIntermediates/Cable Park/InstallationBuildProductsLocation/Applications//Cable Park.app/Frameworks/Alamofire.framework:未知错误-1=ffffffffffffffff 命令 /bin/sh 失败,退出代码为 1我正在寻找一个解决方案,但我无法归档我的项目。
(编辑 1) 新的清理后,删除派生数据并重新启动。 这是新消息
mkdir -p /Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Products/Debug-iphoneos/Cable Park.app/Frameworks
rsync --delete -av --filter P .*.?????? --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Products/Debug-iphoneos/Alamofire/Alamofire.framework" "/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Products/Debug-iphoneos/Cable Park.app/Frameworks"
building file list ... done
Alamofire.framework/
Alamofire.framework/Alamofire
Alamofire.framework/Info.plist
sent 3254366 bytes received 70 bytes 6508872.00 bytes/sec
total size is 3253736 speedup is 1.00
Code Signing /Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Products/Debug-iphoneos/Cable Park.app/Frameworks/Alamofire.framework with Identity iPhone Developer: Geoffroy Hachez (YYNBZTVS5Q)
/usr/bin/codesign --force --sign 3EF707F7B9FBEB2A900A4FE19B59A6EA180661DD --preserve-metadata=identifier,entitlements '/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Products/Debug-iphoneos/Cable Park.app/Frameworks/Alamofire.framework'
/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Products/Debug-iphoneos/Cable Park.app/Frameworks/Alamofire.framework: unknown error -1=ffffffffffffffff
Command /bin/sh failed with exit code 1
(编辑 2)我创建了一个新项目,它是同一个应用程序。当我做模拟器时,它可以工作。当我在我的 iPhone 或存档上进行编译时,同样的错误又回来了。 有人告诉我删除“//”,但我不知道在哪里这样做。 请帮我解决这个问题,这非常令人沮丧 谢谢
【问题讨论】:
【参考方案1】:我发现了我的问题。 是证书问题
我这样做了 Xcode 9 - Alamofire Pods. Command /bin/sh failed with exit code 1
它现在可以工作了。
【讨论】:
【参考方案2】:下面路径中相邻的两个“//”看起来很可疑
在应用程序和有线电视公园之间
/Applications//Cable Park.app/Frameworks" 构建文件列表...完成
【讨论】:
我没看到你在哪里看到的。【参考方案3】:试试这些步骤:
1- 删除派生数据
2 - 清理你的项目
3- 重启系统
4- 构建您的项目
【讨论】:
谢谢。我做了所有这些,但仍然无法正常工作 alamofire.framworks颜色不一样正常吗?更“为什么”? 尝试重新安装或更新您的 pod 刚做了,我发消息以上是关于归档时 xcode 9.3 错误命令 /bin/sh 失败,退出代码为 1的主要内容,如果未能解决你的问题,请参考以下文章
Xcode 9.3 构建上传错误:将更改保存到 Apple 数据库时发生错误。 (1015)