命令/bin/sh 失败,退出代码为 1(仅限电话,适用于 SIM) [英] Command /bin/sh failed with exit code 1 (Phone only, works on SIM)

查看:35
本文介绍了命令/bin/sh 失败,退出代码为 1(仅限电话,适用于 SIM)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试将我一直在开发的一些应用程序安装到我的手机上.其中一些应用程序现在给了我这个臭名昭著的错误

I've been trying to instal a few apps that I've been developing to my handset. A few of these apps now give me this infamous error

Command /bin/sh failed with exit code 1

此错误仅在尝试将应用安装到物理设备时发生,在模拟器上一切正常.我已经用谷歌搜索了这个问题的解决方案,但没有任何帮助,很多人建议只在启动时运行 shell 脚本.这个修复对我不起作用,因为它仍然不会安装在手机上,然后破坏应用程序的模拟器版本.

This error ONLY happens when trying to install the app to a physical device, everything works perfectly on the simulator. I've googled a solution to this problem and nothing really helps, a lot of people suggest only running shell scripts at launch. This fix doesn't work for me as it still won't install on the phone and then breaks the simulator version of the app.

我已尝试清除派生数据中的临时文件,但没有任何区别.

I've tried clearing the temp files in derived data and that makes no difference.

我还检查了退出应用程序.我同时使用个人帐户和付费帐户,因此签名应该不是问题.

I've also checked the signing off the app. I'm using both my personal account and a paid account so signing should not be an issue.

大家有什么建议吗?现在真的开始烦我了!

Anyone have any suggestions? its really starting to bug me now!

推荐答案

好像和mac上的权限有关.当你重新启动 xcode &您的 mac 它应该提示您授予访问权限(我认为它的钥匙串但不是 100%).我一直在使用带有未知密码的办公电话,只是忽略了它,导致我的任何应用程序都无法加载到任何设备上.

Seems to be related to permissions on the mac. When you restart xcode & your mac it should prompt you for permissions to access (I think its keychain but not 100%). I had been using an office phone with an unknown password and had just ignored it causing none of my apps to load onto any device.

这篇关于命令/bin/sh 失败,退出代码为 1(仅限电话,适用于 SIM)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆