Javascript ui屏幕截图程序未运行

Javascript ui屏幕截图程序未运行,javascript,ios,ios-ui-automation,Javascript,Ios,Ios Ui Automation,我正在使用ui screen shooter尝试拍摄本地化的屏幕快照,但在运行时遇到问题。/ui screen shooter。我已经按照所有说明进行了操作,并且认为我已经拥有了所有的脚本文件。但是我在运行/ui screen shooter时遇到以下错误: ./ui-screen-shooter.sh ~/Desktop/screenshots /Users/andyphillips404/Documents/Projects/DoggeryApps/Photo Finish/config-s

我正在使用ui screen shooter尝试拍摄本地化的屏幕快照,但在运行时遇到问题。/ui screen shooter。我已经按照所有说明进行了操作,并且认为我已经拥有了所有的脚本文件。但是我在运行/ui screen shooter时遇到以下错误:

./ui-screen-shooter.sh ~/Desktop/screenshots
/Users/andyphillips404/Documents/Projects/DoggeryApps/Photo Finish/config-screenshots.sh: line 24: syntax error near unexpected token `('
我不确定出了什么问题。这是我的config-screenshots.sh的副本:

#!/bin/bash
# This is an example configuration file to be used with ui-screen-shooter
# It is designed to work with the Hello World International application
# Please copy to config-screenshots.sh and edit for your needs


# LOCALE
# ======
# Set the locales here in which your screenshots should be made.
# Use format like en-US zh-Hans for filenames compatible with iTMSTransporter
# Note: to get the locale names for your existing app:
#  - Download .itmsp file with iTMSTransporter
#  - Run `grep locale ~/Desktop/*.itmsp/metadata.xml  | grep name | sort -u`

export languages="en-US da de es fr it ja nl pt ru zh-Hans zh-Hant”


# SIMULATORS
# ==========
# The simulators we want to run the script against, declared as a Bash array.
# Run `instruments -s devices` to get a list of all the possible string values.

declare -xa simulators=(
"iPhone 6 (8.1 Simulator)",
"iPhone 6 Plus (8.1 Simulator)",
"iPhone 5 (8.1 Simulator)",
"iPhone 4s (8.1 Simulator)"
)

任何人都知道,猜测问题出在错误代码中的declare语句上,但不知道为什么……

我是个白痴,很抱歉浪费了大家的时间。我需要停止在mac电脑上使用基本文本编辑器。它将更改为“正如您可以从上面的帖子中看到的那样。问题行上方导出行中的最后一个字符是导致所有问题的原因


把它改回a,我们很好。。。这不是我第一次被烧死。。。对不起,伙计们……

你们联系过ui screen shooter的开发者吗?是的,我也给他发了电子邮件。虽然我刚刚给他发了电子邮件,但我的最后期限很紧,希望如果有人有线索,我能更快地得到答案……试着避开你名字的括号。除非我算错了,否则第24行您的脚本所抱怨的是iPhone6 8.1模拟器,。请尝试iPhone 6\8.1模拟器\、,。我真的认为这不管用,但值得一试。