android 的例子我之前在 windows 上测试过,都没有问题,现在 mac 上从配置到运行都需要前辈帮我看看

mac 10.10.4,jdk 1.7.79,eclipse 4.4.2,appium 1.3.7 /1.4.1,Xcode6.3.3,selenium 两个包为 2.46 和 java-clinet2.1,都是 maven 自己下载的。iOS 模拟器是 iPhone 6 8.3,真机是 y(iPhone4 7.1.2)
只测试 iOS,所以没有配置 javahome,使用的是 appium img 安装包,所以没有单独安装 nodejs。TestApp.app 是我下载了例子工程在 xcode 里重新 build 的,真机上的 TestApp 我也已经用 Xcode 安装进去。

先问两个初级问题:
1.ipa 文件不能用 App Store 里的,那么要用 xcode 用开发者证书 build 的?
2.我直接用的签名前的 app 文件,就是 xcode 里 build 后 release 目录下的 app 吗?

现在测试官方例子 SimpleTest 都不行,配置信息和错误 log 如下:
1.模拟器
appium

setup()

错误 log,模拟器已经被正常启动,但是在首页面(Safari 图标页面)下拉几下后就退出了

info: [IOS_SYSLOG_ROW ] Jul 20 09:58:02 TeddeMac-mini.local SpringBoard[437]: Unable to get pid for 'UIKitApplication:io.appium.TestApp[0xd784]': No such process (err 3)
info: [IOS_SYSLOG_ROW ] Jul 20 09:58:02 TeddeMac-mini.local SpringBoard[437]: Application 'UIKitApplication:io.appium.TestApp[0xd784]' exited voluntarily.

info: [IOS_SYSLOG_ROW ] Jul 20 09:58:02 TeddeMac-mini.local SpringBoard[437]: Unable to deliver -[UIRemoteApplication showTopMostMiniAlertWithSynchronizationPort:] message to port 0: (ipc/send) invalid destination port
info: [IOS_SYSLOG_ROW ] Jul 20 09:58:02 TeddeMac-mini com.apple.CoreSimulator.SimDevice.157CF203-4814-48C4-9382-E693418BB543.launchd_sim[423] (UIKitApplication:io.appium.TestApp[0xca48][491]): Program specified by service does not contain one of the requested architectures: "
info: [IOS_SYSLOG_ROW ] Jul 20 09:58:02 TeddeMac-mini.local SpringBoard[437]: Unable to get pid for 'UIKitApplication:io.appium.TestApp[0xca48]': No such process (err 3)
info: [IOS_SYSLOG_ROW ] Jul 20 09:58:02 TeddeMac-mini.local SpringBoard[437]: Application 'UIKitApplication:io.appium.TestApp[0xca48]' exited voluntarily.

info: [IOS_SYSLOG_ROW ] Jul 20 09:58:02 TeddeMac-mini assertiond[441]: assertion failed: 14E46 12F69: assertiond + 12334 [8E465C14-E4AE-36E9-AFBE-D28459602962]: 0x1

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Failed looking up pid of launched process

info: [debug] [INSTSERVER] Instruments exited with code 253

2.真机
appium

setup

错误 log

info: [debug] Creating iDevice object with udid b2d4962079986582b389d7db432c9d8da1d7bae6
info: [debug] Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller

error: Log capture did not start in a reasonable amount of time

info: [debug] Cleaning up appium session
info: [debug] Error: Could not initialize ideviceinstaller; make sure it is installed and works on your system
    at [object Object].IOS.getIDeviceObj (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:909:13)
    at [object Object].IOS.installToRealDevice (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:856:32)
    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:607:21
    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:246:17
    at iterate (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:146:13)
    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:157:25
    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:248:21
    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:612:34
    at [object Object].<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:1527:14)
    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/underscore/underscore.js:890:21
    at [object Object]._onTimeout (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios-log.js:166:7)
    at Timer.listOnTimeout (timers.js:110:15)
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Could not initialize ideviceinstaller; make sure it is installed and works on your system)","origValue":"Could not initialize ideviceinstaller; make sure it is installed and works on your system"},"sessionId":null}
info: <-- POST /wd/hub/session 500 10059.953 ms - 300 

error: Could not initialize ideviceinstaller; make sure it is installed and works on your system
error: Failed to start an Appium session, err was: Error: Could not initialize ideviceinstaller; make sure it is installed and works on your system


↙↙↙阅读原文可查看相关链接,并与作者交流