非越狱iOS设备的远程控制实现原理
具体使用
2017-06-13 15:39:55.847 XCTRunner[2161:1804726] Built at Jun 13 2017 15:11:20 2017-06-13 15:39:55.932 XCTRunner[2161:1804726] ServerURLHere->http://192.168.16.132:8100<-ServerURLHere
demo 启动safari,并打开百度
NSString *appBundleID = @"com.apple.mobilesafari";
XCUIApplication* app = [[XCUIApplication alloc] initPrivateWithPath:nil bundleID:appBundleID];
[app launch];
[app.otherElements[@"URL"] tap];
[app typeText:@"www.baidu.com\n"];资料
Last updated