简体   繁体   English

Shell脚本调用错误 - Xcode 6

[英]Shell Script Invocation Error - Xcode 6

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? 任何人都可以建议从哪里开始寻找解决这个构建问题的bug?

Extra details: I'm running Xcode 6.0.1. 额外细节:我正在运行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. 在“构建阶段”的“运行脚本”区域中,有一个用于Crashlytics.framework的Shell(/ bin / sh)脚本,我之前没有使用过。不确定这是否有帮助。

EDIT 编辑

There are two Shells in the build phases. 构建阶段有两个Shell。 Crashlytics and pods: Crashlytics和pods:

Shell: /bin/sh

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

and

Shell: /bin/sh

./Crashlytics.framework/run xxxxxxxxxxxxx

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. 我的一个pod(在我的例子中是ICETutorial)因为它的xib文件而出现了套管问题。 When I removed this pod the app worked fine. 当我删除此pod时,应用程序运行正常。 Also you may need to uninstall pods and install them again; 此外,您可能需要卸载pod并再次安装它们; also update them for iOS8 support. 还会更新它们以获得iOS8支持。

Try to check each pod in your app; 尝试检查应用中的每个广告连播; I guess one of them casing this problem. 我想其中一个就是这个问题。

Hope this will help you. 希望这会帮助你。

Thanks 谢谢

I had the same error and I found that carthage was not installed. 我有同样的错误,我发现没有安装迦太基。 Installed carthage through brew then did a rebuild. 通过brew安装的迦太基然后进行了重建。 This time got a message to setup Fabric because it was used by the original developer. 这次有一条消息要设置Fabric,因为它是由原始开发人员使用的。 Installed Fabric and followed their instructions. 已安装Fabric并按照其说明操作。 The problem is gone. 问题消失了。 Hope this helps. 希望这可以帮助。

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)引起的,尝试转换xib并在项目中使用的某些pod中使用。

Solution 1 - Re-download Xcode 5.1 from the member centre: https://developer.apple.com/downloads/index.action 解决方案1 ​​ - 从会员中心重新下载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标准。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM