使用 xcode6.0 测试 ios8.0 的 app 出现问题,使用 instrument-》automation,导入脚本进行测试或者录制脚本进行测试,出现启动了应用,但是 app 卡死在启动的界面,怎么破?
log。。。。。
#2 楼 @gaoxing200851 你看 xcode,应该是有的
是真机测试么
#4 楼 @lifreshman 是的,是真机。
#9 楼 @gaoxing200851 嗯我知道卡死,我说的不是 windows 那边的那个 log,是说你 app 通过 xcode 的编译之后,如果有 crash 或者任何的卡住,xcode 本身会有 log 出现。
#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
#14 楼 @gaoxing200851 。。。。。。公司拿不到。。。这真心是悲哀啊。。。
#16 楼 @gaoxing200851 -。=。。。所以。。其实很多时候都是猜,所以我是建议你去争取下代码,猜问题是很浪费时间的。
是不是开发编译的 SDK 版本太低?
@gaoxing200851 楼主问题解决了吗?我也是真机,存在和你一样的问题,ios8.1 真机,xcode6,appium1.3.4,客户端直接安装在真机上的,运行后直接卡死在启动界面。真机不变,用 xcode5 appium1.2.2 也不行
@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 在真机上运行,一运行就在首页的页面上卡死,求解啊,有解决的说下哈