-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS 真机运行失败 #42
Comments
@ftvbftvbq 你是测试什么流程? |
我没有测试很复杂的流程,我本意是想打开app,点击一个按钮,我早上全局安装了webpack,这个有影响吗?这个东西我自己要用,昨天还是正常的,没有问题,我看到runner和另外一个在真机上安装成功过的。 |
我升级xcode到最新版,不知道能不能解决,等我最新回复吧,下载需要时间。 |
全部代码贴一下,其实是按照那个真机贴在改的:
|
@ftvbftvbq 与webpack没任何关系奥 |
除了我目前升级xcode外,还有其他fix issue的建议吗? |
xcode已经升级到最新,还行报错,No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier “com.facebook.xctweb-driver-agent” were found. |
这个问题是provisioning file导致,如果签名下加了设备就需要在preferance--account中点击 view detail,然后,重新download下所有的数据到本地来就解决了,谢谢!那个帖子上的问题我也回复下。 |
@ftvbftvbq 欢迎把解决方式具体说明一下,我们可以把这个问题放到 FAQ 里面,谢谢使用! |
这个问题导致的原因主要是很多人共用一个帐户,然后,有人后来在证书下加了设备,而你本地这些证书没有更新到最新的,导致的这个报错;解决方法已经在上面提到过了:如果签名下加了设备就需要在preferance--account中点击 view detail,然后,重新download下所有的数据到本地来就解决了,谢谢! |
hi,我通过执行 macaca run --rebose出现报错`>> xctest-client.js:219:14 [master] pid:5762 2016-06-07 13:05:49.184 xcodebuild[5820:606252] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
The following build commands failed: 我的脚本也很简单 const path = require('path');
const wd = require('wd');
describe('macaca mobile sample', function() {
this.timeout(5 * 60 * 1000); // mocha 设置超时时间
var driver = wd.promiseChainRemote({ // 初始化 webdriver
host: 'localhost',
port: 3456
});
before(function() { // 与 Android 最大不同是无需指定 APP 的路径,需要传 udid 和 bundleId
return driver.init({
platformName: 'ios',
deviceName: 'iPod touch(2)',
platformVersion: '9.3.2',
udid: 'xx',
bundleId: 'xx'
});
});
after(function() { // 所有测试用例的统一后置动作
return driver
.sleep(1000)
.quit();
});
it('#1 should login success', function() { // 测试一下 login
return driver
.waitForElementByName('发现')
.click()
.sleep(1000)
.waitForElementByName('智玩')
.click()
.sleep(5000);
});
}); |
@diaojunxian 是小米手环团队,主要依赖蓝牙功能,所以真机这边需要处理下 @brunoyang |
不好意思,重贴一下,完全模仿官方例子 const path = require('path');
const wd = require('wd');
describe('macaca mobile sample', function() {
this.timeout(5 * 60 * 1000); // mocha 设置超时时间
var driver = wd.promiseChainRemote({ // 初始化 webdriver
host: 'localhost',
port: 3456
});
before(function() { // 与 Android 最大不同是无需指定 APP 的路径,需要传 udid 和 bundleId
return driver.init({
platformName: 'ios',
deviceName: 'iPod touch(2)',
platformVersion: '9.3.2',
udid: 'xx',
bundleId: 'xx'
});
});
after(function() { // 所有测试用例的统一后置动作
return driver
.sleep(1000)
.quit();
});
it('#1 should login success', function() { // 测试一下 login
return driver
.waitForElementByName('发现')
.click()
.sleep(1000)
.waitForElementByName('智玩')
.click()
.sleep(5000);
});
}); |
@brunoyang 这个怎么样了啊 |
@diaojunxian 尝试一下
|
@brunoyang 之前已解决试过,没有修复这个问题 |
@diaojunxian 现在log可以贴一下吗 |
|
@xudafeng 日志已经贴上,在上一个回复 |
@diaojunxian 编译报错了,你的模拟器流程可以运行起来? |
@xudafeng 有没有文档是从开始如何写脚本的,官方例子能走通,环境是没问题的,我感觉可能是我的脚本写的有问题 我是按照 https://testerhome.com/topics/4549 这个写的,现在重写一遍发现执行报错都不一样了,我懵 |
@diaojunxian teamviewer,我给你看看吧 |
@xudafeng 好的 等下啊 我来安装一下 我还没有安装teamviewer |
@xudafeng 我也遇到了同样的问题
|
@wglong 你也是能正常执行官方的demo么?是执行自己的包,报错么? |
@diaojunxian 是的,Demo 正常,自己的包就出问题了。
|
@wglong xcode 先升级到最新吧 |
@wglong 我是在模拟器上自己的包,可以正常打开,但是真机就会出问题,官方demo真机你能执行么? |
@xudafeng 我已经确认我们自己的包可以在模拟器上执行,但是就是在真机上执行不了,报错,我重新贴一下log
|
@diaojunxian 真机是哪个版本系统 |
@xudafeng 9.3.2 |
@diaojunxian 你的XCTUITestRunner装进真机没有?有的话把他删了,等程序自动再装一次。 |
@sencho 木有装进去 |
@diaojunxian 真机和你的Mac要在同一个网络下,还有你真机要测试的app要先build进去 |
@sencho 恩 都是符合的 山草 我在qq也咨询你了 |
4 4s 5 都复现,更高的版本是好的。 @diaojunxian 先用64位机器吧 |
@xudafeng @sencho
|
可能是证书签名的问题,我之前也遇到过 |
@diaojunxian 亲这个问题你是怎么解决的 我现在也遇到了一样的 |
在wda中执行./Scripts/build.sh 出错,错误信息如下: The following build commands failed: |
@among29 升级gcc |
真机调试文档
遇到iOS真机问题(证书问题为主),请看如下文章
The text was updated successfully, but these errors were encountered: