Xcode 9-Alamofire荚。命令/ bin / sh失败,退出代码为1 [英] Xcode 9 - Alamofire Pods. Command /bin/sh failed with exit code 1
问题描述
/Users/Alex/Library/Developer/Xcode/DerivedData/MyProject-ehabmnclpzlywhabrefntacibonm/Build/Intermediates.noindex/ArchiveIntermediates/Fuego/InstallationBuildProductsLocation/Applications//MyProject.app/Frameworks/Alamofire.framework: unknown error -1=ffffffffffffffff
Command /bin/sh failed with exit code 1
我存档项目时遇到了这个问题。当我在模拟器上运行应用时,没有上面的问题,一切正常。
I got this issue when I Archive my project. When I run app on simulator it works ok without such issue above.
此外,它在 Xcode 8
下也可以正常工作,但是现在,当我尝试将其存档在 Xcode 9
上时,我遇到了这个问题。但是也许情况并非如此,因为我从头开始重新安装了 Mac OS
,所以我不确定那是cocopods版本的问题。
Also it works ok with Xcode 8
, but now when I try to Archive it on Xcode 9
I have this issue. But maybe this is not the case as I reinstall Mac OS
from scratch, so it maybe cocopods version issue I am not sure.
在上面的示例中还有两个 //
对我来说也很奇怪 /Applications//MyProject.app
Also two //
here in the example above is also strange for me /Applications//MyProject.app
推荐答案
我认为这是Xcode的错误。重新启动Mac,然后尝试重新构建。 Xcode会在构建Alamofire之前要求获得访问您的钥匙串的许可,然后才允许它。
I believe it's a Xcode's bug. Restart your Mac and try to build again. Xcode would ask permission to access your Keychain before build Alamofire, then just allow it.
这篇关于Xcode 9-Alamofire荚。命令/ bin / sh失败,退出代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!