简体   繁体   中英

Shell Script Invocation Error with Crashlytics Xcode 8

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

Shell Script Invocation Error

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.

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

chmod 755 run
chmod 755 upload-symbols
chmod 755 uploadDSYM

With no luck. Any idea?

PS

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

So I changed

${PODS_ROOT}/Fabric/run

to

"${PODS_ROOT}/Fabric/run"

In macOS Sierra beta.

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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