Shell 脚本调用错误 - Xcode 6

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26077937/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 05:43:23  来源:igfitidea点击:

Shell Script Invocation Error - Xcode 6

iosxcodeshellbuildexit-code

提问by frddsgn

I've recently picked up a project from another developer, who couldn't complete the project. The only problem I have, is that I can't get the project to build for the simulator, or for a device, through Xcode.

我最近从另一个开发人员那里接手了一个项目,他无法完成该项目。我唯一的问题是我无法通过 Xcode 为模拟器或设备构建项目。

The error I'm getting is:

我得到的错误是:

Failed to write out copy of document for diagnostics: Failed to write copy of document to path "(null)": Failed to write out copy of document because it has no file URL
Showing first 200 notices only

**Command /bin/sh failed with exit code 255**

Could anyone advise as to where to start looking to de-bug this build issue?

任何人都可以建议从哪里开始寻找调试这个构建问题?

Extra details:I'm running Xcode 6.0.1. In the 'Run Script' area of the 'Build Phases', there is a Shell (/bin/sh) script for Crashlytics.framework, which I haven't previously used.. Not sure if that helps.

额外的细节:我正在运行 Xcode 6.0.1。在“构建阶段”的“运行脚本”区域中,有一个用于 Crashlytics.framework 的 Shell (/bin/sh) 脚本,我以前没有使用过。不知道这是否有帮助。

EDIT

编辑

There are two Shells in the build phases. Crashlytics and pods:

在构建阶段有两个 Shell。Crashlytics 和 Pod:

Shell: /bin/sh

"${SRCROOT}/Pods/Pods-resources.sh"

and

Shell: /bin/sh

./Crashlytics.framework/run xxxxxxxxxxxxx

采纳答案by frddsgn

Solution- This error was caused by the new version of Xcode (6), trying to convert xibs and used in some of the pods used in the project.

解决方案——这个错误是由于新版本的Xcode(6),试图转换xibs,并在项目中使用的一些pods中使用。

Solution 1 - Re-download Xcode 5.1 from the member centre: https://developer.apple.com/downloads/index.action

方案一——从会员中心重新下载Xcode 5.1:https: //developer.apple.com/downloads/index.action

Solution 2 - Update Pods, linked files and current code base to meet iOS 8 standards.

解决方案 2 - 更新 Pod、链接文件和当前代码库以满足 iOS 8 标准。

回答by AzabAF

I had the same problem it is solved. One of my pods (in my case was ICETutorial) were casing problems because of its xib files. When I removed this pod the app worked fine. Also you may need to uninstall pods and install them again; also update them for iOS8 support.

我遇到了同样的问题,它已解决。我的一个 pod(在我的例子中是 ICETutorial)由于其 xib 文件而出现大小写问题。当我删除这个 pod 时,应用程序运行良好。此外,您可能需要卸载 Pod 并重新安装它们;还更新它们以支持 iOS8。

Try to check each pod in your app; I guess one of them casing this problem.

尝试检查应用中的每个 pod;我猜他们中的一个人解决了这个问题。

Hope this will help you.

希望这会帮助你。

Thanks

谢谢

回答by Jubayer Arefin

I had the same error and I found that carthage was not installed. Installed carthage through brew then did a rebuild. This time got a message to setup Fabric because it was used by the original developer. Installed Fabric and followed their instructions. The problem is gone. Hope this helps.

我有同样的错误,我发现没有安装迦太基。通过 brew 安装迦太基然后重建。这次收到了设置 Fabric 的消息,因为它是由原始开发人员使用的。安装 Fabric 并按照他们的说明进行操作。问题消失了。希望这可以帮助。