Crashlytics Xcode 8 的 Shell 脚本调用错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/39636551/
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 09:19:40  来源:igfitidea点击:

Shell Script Invocation Error with Crashlytics Xcode 8

iosxcodexcode8twitter-fabric

提问by Konstantinos Natsios

When i try to run a script in my xcode 8 project i get this error

当我尝试在我的 xcode 8 项目中运行脚本时,我收到此错误

Shell Script Invocation Error

Shell 脚本调用错误

I know how to install fabric in xcode, i've successfuly installed in in xcode 7 in numerous projects without issue. But now in a new project in xcode 8 i get this error.

我知道如何在 xcode 中安装结构,我已经成功地在许多项目中安装在 xcode 7 中,没有出现问题。但是现在在 xcode 8 的一个新项目中,我收到了这个错误。

When i delete the script there is no error at all.

当我删除脚本时,根本没有错误。

The script has the following style.

该脚本具有以下样式。

/bin/sh
${PODS_ROOT}/Fabric/run API KEY OTHERKEY

I tried to navigate inside Fabric folder of my Pod, and runed this command

我试图在我的 Pod 的 Fabric 文件夹中导航,并运行了这个命令

chmod 755 run
chmod 755 upload-symbols
chmod 755 uploadDSYM

With no luck. Any idea?

没有运气。任何的想法?

P.S.

聚苯乙烯

the error is the following

错误如下

/Users/kwstasna/Library/Developer/Xcode/DerivedData/APPNAME-fmbbqrezzwnumzdatywvlcxvqdob/Build/Intermediates/APPNAME.build/Debug-iphoneos/APPNAME.build/Script-6EA07B731D93E6ED00FD0CE8.sh: line 2: /Users/kwstasna/Desktop/open: No such file or directory

回答by Konstantinos Natsios

So I changed

所以我改变了

${PODS_ROOT}/Fabric/run

to

"${PODS_ROOT}/Fabric/run"

In macOS Sierra beta.

在 macOS Sierra 测试版中。

回答by manismku

In my case after removing some library from CocoaPods script was trying to run from derived data something like:

在我的情况下,从 CocoaPods 脚本中删除一些库后,试图从派生数据运行,例如:

/Library/Developer/Xcode/DerivedData/ ......./Pods/Fabric/Fabric.framework/run: No such file or directory

/Library/Developer/Xcode/DerivedData/ ......./Pods/Fabric/Fabric.framework/run: 没有那个文件或目录

So I cleared my derived data and it's no longer complaining

所以我清除了我的派生数据,它不再抱怨