其他测试框架 使用 xcode6.0 测试 ios8.0 的 app 出现问题

johnfad · 2014年12月12日 · 最后由 无忧 回复于 2016年04月07日 · 3687 次阅读

使用 xcode6.0 测试 ios8.0 的 app 出现问题,使用 instrument-》automation,导入脚本进行测试或者录制脚本进行测试,出现启动了应用,但是 app 卡死在启动的界面,怎么破?

共收到 26 条回复 时间 点赞

log。。。。。

#1 楼 @monkey 是 app 的 log 吗? automation 没有任何 log。

#2 楼 @gaoxing200851 你看 xcode,应该是有的

是真机测试么

#4 楼 @lifreshman 是的,是真机。

#3 楼 @monkey 是在 orgnize 里边那个?

#3 楼 @monkey 你跑 instruments 的话通过 xcode 编译去跑,然后如果有问题,xcode 里面默认就有日志的

#7 楼 @monkey 好的谢谢 我试试

#7 楼 @monkey 你说的是 window-origener 的 log 吗?我看了只有以前 crash 的 log。 automationplist 的 log 就是正常的点击的几个坐标。现在的情况是脚本实际运行起来了一直在跑,但是 app 卡死在第一个界面。

#9 楼 @gaoxing200851 嗯我知道卡死,我说的不是 windows 那边的那个 log,是说你 app 通过 xcode 的编译之后,如果有 crash 或者任何的卡住,xcode 本身会有 log 出现。

#10 楼 @monkey 我的 app 是直接安装好的,是他们打好的开发者证书的包,用 xcode5 就可以跑起来哦。

#11 楼 @gaoxing200851 =。=。。囧。。。我很建议。。我很强烈建议你自己去编译一个,不要让开发区编译,否则就如你现在一样,有问题你也看不到 log。。。。

#10 楼 @monkey这个用 appium 跑到 log 和 automation 的情况一样,都是脚本在跑,但是 app 界面卡死在首个界面,请大神帮忙分析下,使用 xcode5 都是可以跑起来的,但是 xcode6.1.1 就不行了。

info: [debug] App is an iOS bundle, will attempt to run as pre-existing

info: [debug] Creating new appium session 6b068aca-e2a4-44ee-9c0f-88f057a4ab12

info: [debug] Removing any remaining instruments sockets

info: [debug] Cleaned up instruments socket /tmp/instruments_sock

info: [debug] Setting Xcode folder

info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.1

info: [debug] Not checking whether simulator is available since we're on a real device
info: [debug] Detecting automation tracetemplate

parseFileSync() is deprecated. Use parseStringSync() instead.

info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com. Ace/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com. Ace/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings; assuming it doesn't exist
info: [debug] Creating instruments
info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/Ace/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {"nodePath":"/Applications/Appium.app/Contents/Resources/node/bin/node","commandProxyClientPath":"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
...
info: [debug] Dynamic bootstrap path: /Users/Ace/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js
info: [debug] Reusing dynamic bootstrap: /Users/Ace/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js

info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"6.1.1","iOSSDKVersion":"8.1","deviceName":"iOS","platformVersion":"8.0"}
info: [debug] fixDevice is on
info: [debug] Final device string is: 'iOS (8.0 Simulator)'
info: [debug] Not setting device type since we're on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we're on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons

info: [debug] On a real device; cannot clean device state

info: [debug] Not setting locale because we're using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole

info: [debug] Not pre-launching simulator

info: [debug] Creating iDevice object with udid a15a5c8e453d2aff23ee73d3627e3691894fc1e8
info: [debug] Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id a15a5c8e453d2aff23ee73d3627e3691894fc1e8 --bundle com. Ace

info: [debug] App is installed.

info: [debug] fullReset not requested. No need to install.
info: [debug] Starting command proxy.

info: [debug] Instruments socket server started at /tmp/instruments_sock
info: [debug] Starting instruments

info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID a15a5c8e453d2aff23ee73d3627e3691894fc1e8
info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w a15a5c8e453d2aff23ee73d3627e3691894fc1e8 com. Ace -e UIASCRIPT "/Users/Ace/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {"global":90000}

info: [debug] [INST STDERR] 2014-12-14 21:10:12.522 instruments[2025:6403] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:11 Administratorde-iPod kernel[0] : xpcproxy[938] Container: /private/var/mobile/Containers/Data/Application/1C796F3E-4AA1-45E2-BD54-C13D085CDDF8 (sandbox)

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:11 Administratorde-iPod Ace[938] : MS:Notice: Injecting: com. Ace Ace

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:11 Administratorde-iPod locationd[120] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:11 Administratorde-iPod ScriptAgent[939] : MS:Notice: Injecting: com.apple.UIAutomationPlugIn ScriptAgent

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:11 Administratorde-iPod notification_proxy[281] : 0x303000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:11 Administratorde-iPod notification_proxy[281] : 0x281000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:12 Administratorde-iPod Ace[938] : assertion failed: 12A365: libxpc.dylib + 51955 [84E1BEE3-B897-39DD-9A7B-D061B6B252C5]: 0x7d

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:12 Administratorde-iPod Unknown[938] :

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:12 Administratorde-iPod pasteboardd[941] : MS:Notice: Injecting: (null) pasteboardd

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:12 Administratorde-iPod Ace[938] : registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later.

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : img

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 111spring

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 222spring_11
info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 222spring_33
info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 222spring_21
info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 222spring_12

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 222tutorials_more
info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 222tutorials_switchingChannel
info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 222spring_31
info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 222whitePoint
info: Instruments is ready to receive commands
info: [debug] Instruments launched. Starting poll loop for new commands.
info: [debug] Setting bootstrap config keys/values
info: [debug] Pushing command to appium work queue: "target = $.target();\nau = $;\n$.isVerbose = true;\n"

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 222bluePoint
info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 222tutorials_editChannels
info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 222spring_22
info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 222spring_13
info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[938] : 222spring_car
info: [debug] Socket data received (2 bytes)
info: [debug] Socket data being routed.
info: [debug] Sending command to instruments: target = $.target();
au = $;
$.isVerbose = true;

info: [IOS_SYSLOG_ROW ] Dec 14 21:10:13 Administratorde-iPod Ace[93

#12 楼 @monkey 哎,公司拿不到代码。。。

#14 楼 @gaoxing200851 。。。。。。公司拿不到。。。这真心是悲哀啊。。。

#15 楼 @monkey 现在想不通的是同样的 app,一个装在 ios8.1 的设备上,用 xcode6 跑,会卡死,但是装在 ios7.1.1 的设备在 xcode6 和 xcode5 上都可以跑起来,不知道有什么区别呢,哎。。。

#16 楼 @gaoxing200851 -。=。。。所以。。其实很多时候都是猜,所以我是建议你去争取下代码,猜问题是很浪费时间的。

#17 楼 @monkey 嗯,好的,看看能不能拿到代码。

匿名 #8 · 2014年12月15日

是不是开发编译的 SDK 版本太低?

#19 楼 @link1220 我们 app 是适配了 ios8.0 系统的哦,您的 sdk 版本过低是指?

@gaoxing200851 楼主问题解决了吗?我也是真机,存在和你一样的问题,ios8.1 真机,xcode6,appium1.3.4,客户端直接安装在真机上的,运行后直接卡死在启动界面。真机不变,用 xcode5 appium1.2.2 也不行

#21 楼 @crease 你也是 8.0 以上的机器卡死在启动界面?8.0 以下的机器就 ok 吗? 你问下你们开发打的包 sdk 是多少?

@gaoxing200851 8.0 以下的机器我没试,现在只能用模拟器了。。。并且模拟器也只能选 xcode 5,以及 xcode5 支持的版本如 ios 7.0 上,换 xcode6 的高版本(如 ios 8.0)就不行了。有谁知道如何解决吗?

我也遇到这个问题,app 在真机上,直接脚本录制也是卡在了欢迎页面~求解啊

不确定我和你遇到是同样问题,我用 instruments 录制操作,一直冻屏,包括开关 wifi,在系统状态栏都看不到状态改变,使用 appium 提示的是 (Original error: App did not have elements),我把手机还原出厂设置后修复了。

我也是这个问题啊 , ios 在真机上运行,一运行就在首页的页面上卡死,求解啊,有解决的说下哈

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