Appium Appium 运行后跑测试抛错

pobeike · 2013年11月06日 · 最后由 pobeike 回复于 2013年11月18日 · 1782 次阅读

先说下我安装步骤:
1、安装 homebrew
2、使用 brew 安装 node
3、npm install -g appium 装的是 0.11.2 版本
4、直接 bash appium &
环境是 mac 10.9 xcode5.
然后跑测试,就出现@monkey在 google group 上提的 500 错误。

然后使用 sudo authorize_ios,提示: uncaughtException: Bad argument date=Wed Nov 06 2013 08:55:07 GMT+0800 (CST), pid=1827, uid=0, gid=0, cwd=/Users/jeremyc, execPath=/usr/local/bin/homebrew/Cellar/node/0.10.21/bin/node, version=v0.10.21

再卸载 xcode,退回 4.6.3。sudo authorize_ios 依然如上的错误。跑测试也是和之前一样提示:Instruments did not launch successfully--please check your app paths or bundle IDs and try again

我看 google group 上号称 sudo authorize_ios 的错误在 master 上修好了?!

共收到 24 条回复 时间 点赞

我也好几天没有上去看了,当初我的印象是某用户说修好了,官方貌似没有回应。

加个头像呗。

对了,你 app 有重新 build 么?

@monkey 有的。我是搞持续集成的,每次都会重新 build 的。我昨天在 Hangouts 和你说话了。。

@lihuazhang 可以从 master 抓下来再打包成 npm 包?node 没玩,不会打。

不需要,你试试从源代码运行

#4 楼 @lihuazhang 这个的确是让 sudo authorize_ios 好了。

但是,跑测试,还是报:Instruments did not launch successfully。都已经是 xcode4.6.3 了。我看网上说 xcode4.6.3 没问题?

#9 楼 @pobeike 除了这个错误信息,还有啥 info?

#5 楼 @pobeike 不好意思不好意思,最近忙,都没有关注,也许正好是邮件在线。。= =。。

#10 楼 @monkey info: [INSTSERVER] Instruments exited with code 253
error: Instruments did not launch successfully, failing session
info: Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Instruments did not launch successfully--please check your app paths or bundle IDs and try again
info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Instruments did not launch successfully--please check your app paths or bundle IDs and try again)","origValue":"Instruments did not launch successfully--please check your app paths or bundle IDs and try again"},"sessionId":null}
POST /wd/hub/session 500 888ms - 342b

已经是 xcode4.6,而且我是取 appium 的 master 下来重新执行 reset.sh 了。
我是用 c# 写的测试代码。看起来像 appium 的问题。

authorize 是 ok 了。
appium 依然是:error: Instruments did not launch successfully, failing session
还有一直报这个:warn: Could not parse plist file at /Users/.../***.app/en.lproj/Localizable.strings

xcode5.02 出来了,有人试过 ok 了没?

#16 楼 @pobeike 是伐。我去升级试试看~

我的就是 Xcode 5.0.2,但我是直接下载 0.11.3 版本的 Dmg 来运行 Appium 的,可以正常运行自带的 sample-code 中的 Case

19楼 已删除

#16 楼 @pobeike 之前在 xcode 5.0.2 上是有问题的,不知道现在修复了没有

#20 楼 @guo 修复了。

#20 楼 @lihuazhang 对,我在 Xcode 5.0.2 上没有遇到 authorize_ios 问题

#20 楼 @lihuazhang @xiaomayi0323 那看来可以放心大胆的升级了

我升级下,看能解决我这个 500 错误问题不?

各位成功的兄弟,帮助下,现在环境已经是:appium0.11.4 xcode5.02 sdk:ios7 mac10.9 了。依然那个错误。我在 google group 上看,说是 xcode5.02 已经是 ok 的?node 版本不影响吧?我是使用 brew 安装的,版本为 0.10.21.

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册