- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我尝试使用 ios-driver ( http://ios-driver.github.io/ios-driver/setup.html ) 在 Mac OS X 10.9.1 上使用 XCode 附带的集成模拟器运行 Selenium 测试。
我做了以下事情:
1.) 启动 ios-server:
$ java -jar ios-server-0.6.5-jar-with-dependencies.jar -port 5555 -simulators
16:39:412 INFO ApplicationStore.<init> App archive folder:/Users/valmar/Downloads/applications
16:40:492 WARNING AppleLanguage.create no isn't recognized.Please file a bug on github.You won't be able to start the app in that language.
16:40:970 WARNING AppleLanguage.create zh_CN isn't recognized.Please file a bug on github.You won't be able to start the app in that language.
16:40:991 WARNING AppleLanguage.create zh_TW isn't recognized.Please file a bug on github.You won't be able to start the app in that language.
16:41:058 INFO IOSServer.init
Beta features enabled ( enabled by -beta flag ): false
Simulator enabled ( enabled by -simulators flag): true
Inspector: http://0.0.0.0:5555/inspector/
tests can access the server at http://0.0.0.0:5555/wd/hub
server status: http://0.0.0.0:5555/wd/hub/status
Connected devices: http://0.0.0.0:5555/wd/hub/devices/all
Applications: http://0.0.0.0:5555/wd/hub/applications/all
Capabilities: http://0.0.0.0:5555/wd/hub/capabilities/all
Monitoring '/Users/valmar/Downloads/applications' for new applications
Archived apps /Users/valmar/Downloads/applications
using xcode install : /Applications/Xcode.app
using IOS version 7.0
ios >= 6.0. Safari and hybrid apps are supported.
Applications :
---------------
CFBundleName=Safari,CFBundleVersion=9537.53
2014-02-13 16:16:41.059:INFO::jetty-7.x.y-SNAPSHOT
2014-02-13 16:16:41.186:INFO::Started SelectChannelConnector@0.0.0.0:5555
2.) 启动模拟器:
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app &
3.) 创建我的 Selenium 测试:
public static void main(String[] args) throws Exception {
DesiredCapabilities caps = IOSCapabilities.iphone();
caps.setCapability(IOSCapabilities.SIMULATOR, true);
RemoteWebDriver driver = new RemoteWebDriver(new URL("http://localhost:5555/wd/hub"), caps);
driver.get("http://www.google.com");
System.out.println(driver.getTitle());
driver.quit();
}
4.) ...而我得到的只是这个异常:
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: {simulator=true, timeHack=false, variation=Regular, locale=en_GB, CFBundleName=Safari, device=iphone, language=en}not available. Available are [Simulator]
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'
Driver info: driver.version: unknown
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'
Driver info: driver.version: unknown
Command duration or timeout: 625 milliseconds
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:12:12'
System info: host: 'tacbook13.local', ip: '172.20.10.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:111)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)
at MobSelTest.main(MobSelTest.java:21)
Caused by: org.openqa.selenium.SessionNotCreatedException: {simulator=true, timeHack=false, variation=Regular, locale=en_GB, CFBundleName=Safari, device=iphone, language=en}not available. Available are [Simulator]
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'
Driver info: driver.version: unknown
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'
Driver info: driver.version: unknown
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:12:12'
System info: host: 'tacbook13.local', ip: '172.20.10.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'
Driver info: driver.version: unknown
at org.uiautomation.ios.server.command.uiautomation.NewSessionNHandler.handle(NewSessionNHandler.java:54)
at org.uiautomation.ios.server.command.BaseCommandHandler.handleAndRunDecorators(BaseCommandHandler.java:86)
at org.uiautomation.ios.server.servlet.IOSServlet.getResponse(IOSServlet.java:144)
at org.uiautomation.ios.server.servlet.IOSServlet.process(IOSServlet.java:85)
at org.uiautomation.ios.server.servlet.IOSServlet.doPost(IOSServlet.java:57)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:533)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:920)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:856)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:352)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1066)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
at java.lang.Thread.run(Thread.java:744)
在服务器控制台中我看到此消息:
34:33:904 WARNING IOSServlet.getResponse 359ms. POST /session
怎么了?我不知道如何调试这个。
<小时/>更新:以下是来自 ios 服务器的一些状态消息:
From http://0.0.0.0:5555/wd/hub/status
{
"class": "org.openqa.selenium.remote.Response",
"hCode": 57594336,
"sessionId": null,
"state": null,
"status": 0,
"value": {
"build": {
"revision": "120cf4311807e2e137e519f4c4877cf6340d0cbc",
"time": "20130927-1435",
"version": "0.6.5"
},
"ios": {"simulatorVersion": "7.0"},
"java": {"version": "1.7.0_51"},
"os": {
"arch": "x86_64",
"name": "Mac OS X",
"version": "10.9.1"
},
"state": "success",
"supportedApps": [{
"CFBundleDevelopmentRegion": "English",
"CFBundleDisplayName": "Safari",
"CFBundleExecutable": "MobileSafari",
"CFBundleIcons": {"CFBundlePrimaryIcon": {
"CFBundleIconFiles": [
"icon-spotlight~ipad.png",
"icon-table~ipad.png",
"icon-about~ipad.png",
"icon-table~ipad.png",
"icon-spotlight@2x.png",
"icon-table@2x.png",
"icon~ipad.png",
"icon-about@2x.png",
"icon@2x~iphone.png",
"icon@2x~ipad.png"
],
"UIPrenderedIcon": true
}},
"CFBundleIdentifier": "com.apple.mobilesafari",
"CFBundleInfoDictionaryVersion": "6.0",
"CFBundlePackageType": "APPL",
"CFBundleShortVersionString": "7.0",
"CFBundleSignature": "????",
"CFBundleSupportedPlatforms": ["iPhoneSimulator"],
"CFBundleURLTypes~ipad": [
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
},
{
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": [
"http",
"https"
]
},
{
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
},
{
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
},
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}
],
"CFBundleURLTypes~iphone": [
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
},
{
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": [
"http",
"https"
]
},
{
"CFBundleURLName": "Radar URL",
"CFBundleURLSchemes": [
"rdar",
"radar"
]
},
{
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
},
{
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
},
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}
],
"CFBundleURLTypes~ipod": [
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
},
{
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": [
"http",
"https"
]
},
{
"CFBundleURLName": "Radar URL",
"CFBundleURLSchemes": [
"rdar",
"radar"
]
},
{
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
},
{
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
},
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}
],
"CFBundleVersion": "9537.53",
"DTPlatformName": "iphonesimulator",
"DTSDKName": "iphonesimulator7.0",
"LSRequiresIPhoneOS": true,
"MallocBehavior": {"NanoAllocator": false},
"SBMatchingApplicationGenres": [
"Productivity",
"Utilities"
],
"SBUsesNetwork": 3,
"SafariProductVersion": "7.0",
"UIApplicationDisableLegacyAutorotationKey": true,
"UIBackgroundModes": [
"audio",
"continuousFallback"
],
"UIBackgroundStyle": "UIBackgroundStyleDarkBlur",
"UIDeviceFamily": [
1,
2
],
"UIHasPrefs": true,
"UIStatusBarTintParameters": {"UINavigationBar": {"Style": "UIBarStyleDefault"}},
"UISupportedInterfaceOrientations": [
"UIInterfaceOrientationPortrait",
"UIInterfaceOrientationLandscapeLeft",
"UIInterfaceOrientationLandscapeRight"
],
"UISupportedInterfaceOrientations~ipad": [
"UIInterfaceOrientationPortrait",
"UIInterfaceOrientationLandscapeLeft",
"UIInterfaceOrientationLandscapeRight",
"UIInterfaceOrientationPortraitUpsideDown"
],
"UIViewControllerBasedStatusBarAppearance": true,
"applicationPath": "/Users/valmar/.ios-driver/safariCopies/safari-7.0.app",
"device": "iphone",
"deviceAlt": [
"iphone",
"ipod",
"ipad"
],
"device_Alt": [
"iphone",
"ipad"
],
"resources": {"CFBundleIconFile": "/wd/hub/resources/hash=2134756163"},
"sdkVersion": "7.0",
"sdkVersion_Alt": [
"5.0",
"5.1",
"6.0",
"6.1"
],
"simulator": true,
"supportedLanguages": [
"hr",
"ro",
"ca",
"vi",
"tr",
"fr",
"unknown",
"hu",
"unknown",
"th",
"id",
"pt-PT",
"en-GB",
"fi",
"unknown",
"sv",
"it",
"sk",
"ja",
"uk",
"es",
"da",
"ms",
"ko",
"ar",
"he",
"en",
"nl",
"cs",
"el",
"pl",
"pt",
"ru",
"de"
],
"timeHack": false,
"variation": "Regular"
}]
}
}
<小时/>
From http://0.0.0.0:5555/wd/hub/devices/all
- none
<小时/>
From http://0.0.0.0:5555/wd/hub/applications/all
Simulator Apps
com.apple.mobilesafari
{
"CFBundleDevelopmentRegion": "English",
"CFBundleDisplayName": "Safari",
"CFBundleExecutable": "MobileSafari",
"CFBundleIcons": {"CFBundlePrimaryIcon": {
"CFBundleIconFiles": [
"icon-spotlight~ipad.png",
"icon-table~ipad.png",
"icon-about~ipad.png",
"icon-table~ipad.png",
"icon-spotlight@2x.png",
"icon-table@2x.png",
"icon~ipad.png",
"icon-about@2x.png",
"icon@2x~iphone.png",
"icon@2x~ipad.png"
],
"UIPrenderedIcon": true
}},
"CFBundleIdentifier": "com.apple.mobilesafari",
"CFBundleInfoDictionaryVersion": "6.0",
"CFBundlePackageType": "APPL",
"CFBundleShortVersionString": "7.0",
"CFBundleSignature": "????",
"CFBundleSupportedPlatforms": ["iPhoneSimulator"],
"CFBundleURLTypes~ipad": [
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
},
{
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": [
"http",
"https"
]
},
{
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
},
{
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
},
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}
],
"CFBundleURLTypes~iphone": [
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
},
{
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": [
"http",
"https"
]
},
{
"CFBundleURLName": "Radar URL",
"CFBundleURLSchemes": [
"rdar",
"radar"
]
},
{
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
},
{
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
},
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}
],
"CFBundleURLTypes~ipod": [
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
},
{
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": [
"http",
"https"
]
},
{
"CFBundleURLName": "Radar URL",
"CFBundleURLSchemes": [
"rdar",
"radar"
]
},
{
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
},
{
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
},
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}
],
"CFBundleVersion": "9537.53",
"DTPlatformName": "iphonesimulator",
"DTSDKName": "iphonesimulator7.0",
"LSRequiresIPhoneOS": true,
"MallocBehavior": {"NanoAllocator": false},
"SBMatchingApplicationGenres": [
"Productivity",
"Utilities"
],
"SBUsesNetwork": 3,
"SafariProductVersion": "7.0",
"UIApplicationDisableLegacyAutorotationKey": true,
"UIBackgroundModes": [
"audio",
"continuousFallback"
],
"UIBackgroundStyle": "UIBackgroundStyleDarkBlur",
"UIDeviceFamily": [
1,
2
],
"UIHasPrefs": true,
"UIStatusBarTintParameters": {"UINavigationBar": {"Style": "UIBarStyleDefault"}},
"UISupportedInterfaceOrientations": [
"UIInterfaceOrientationPortrait",
"UIInterfaceOrientationLandscapeLeft",
"UIInterfaceOrientationLandscapeRight"
],
"UISupportedInterfaceOrientations~ipad": [
"UIInterfaceOrientationPortrait",
"UIInterfaceOrientationLandscapeLeft",
"UIInterfaceOrientationLandscapeRight",
"UIInterfaceOrientationPortraitUpsideDown"
],
"UIViewControllerBasedStatusBarAppearance": true
}
<小时/>
From: http://0.0.0.0:5555/wd/hub/capabilities/all
com.apple.mobilesafari on iphone(Simulator)
{
"CFBundleDevelopmentRegion": "English",
"CFBundleDisplayName": "Safari",
"CFBundleExecutable": "MobileSafari",
"CFBundleIcons": {
"CFBundlePrimaryIcon": {
"CFBundleIconFiles": ["icon-spotlight~ipad.png", "icon-table~ipad.png", "icon-about~ipad.png", "icon-table~ipad.png", "icon-spotlight@2x.png", "icon-table@2x.png", "icon~ipad.png", "icon-about@2x.png", "icon@2x~iphone.png", "icon@2x~ipad.png"],
"UIPrenderedIcon": true
}
},
"CFBundleIdentifier": "com.apple.mobilesafari",
"CFBundleInfoDictionaryVersion": "6.0",
"CFBundlePackageType": "APPL",
"CFBundleShortVersionString": "7.0",
"CFBundleSignature": "????",
"CFBundleSupportedPlatforms": ["iPhoneSimulator"],
"CFBundleURLTypes~ipad": [{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
}, {
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": ["http", "https"]
}, {
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
}, {
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
}, {
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}],
"CFBundleURLTypes~iphone": [{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
}, {
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": ["http", "https"]
}, {
"CFBundleURLName": "Radar URL",
"CFBundleURLSchemes": ["rdar", "radar"]
}, {
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
}, {
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
}, {
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}],
"CFBundleURLTypes~ipod": [{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
}, {
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": ["http", "https"]
}, {
"CFBundleURLName": "Radar URL",
"CFBundleURLSchemes": ["rdar", "radar"]
}, {
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
}, {
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
}, {
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}],
"CFBundleVersion": "9537.53",
"DTPlatformName": "iphonesimulator",
"DTSDKName": "iphonesimulator7.0",
"LSRequiresIPhoneOS": true,
"MallocBehavior": {
"NanoAllocator": false
},
"SBMatchingApplicationGenres": ["Productivity", "Utilities"],
"SBUsesNetwork": 3,
"SafariProductVersion": "7.0",
"UIApplicationDisableLegacyAutorotationKey": true,
"UIBackgroundModes": ["audio", "continuousFallback"],
"UIBackgroundStyle": "UIBackgroundStyleDarkBlur",
"UIDeviceFamily": [1, 2],
"UIHasPrefs": true,
"UIStatusBarTintParameters": {
"UINavigationBar": {
"Style": "UIBarStyleDefault"
}
},
"UISupportedInterfaceOrientations": ["UIInterfaceOrientationPortrait", "UIInterfaceOrientationLandscapeLeft", "UIInterfaceOrientationLandscapeRight"],
"UISupportedInterfaceOrientations~ipad": ["UIInterfaceOrientationPortrait", "UIInterfaceOrientationLandscapeLeft", "UIInterfaceOrientationLandscapeRight", "UIInterfaceOrientationPortraitUpsideDown"],
"UIViewControllerBasedStatusBarAppearance": true,
"applicationPath": "/Users/valmar/.ios-driver/safariCopies/safari-7.0.app",
"device": "iphone",
"deviceAlt": ["iphone", "ipod", "ipad"],
"device_Alt": ["iphone", "ipad"],
"sdkVersion": "7.0",
"sdkVersion_Alt": ["5.0", "5.1", "6.0", "6.1"],
"simulator": true,
"supportedLanguages": ["hr", "ro", "ca", "vi", "tr", "fr", "unknown", "hu", "unknown", "th", "id", "pt-PT", "en-GB", "fi", "unknown", "sv", "it", "sk", "ja", "uk", "es", "da", "ms", "ko", "ar", "he", "en", "nl", "cs", "el", "pl", "pt", "ru", "de"],
"timeHack": false,
"variation": "Regular"
}
最佳答案
我认为如果您将 t 用于网络应用程序,您需要做的是在末尾附加端口和模拟器
直到几个小时前,这对我来说仍然有效:java -jar ios-server-0.6.5-jar-with-dependency.jar -端口 5555 -模拟器
我将 Xcode 更新到 5.0.2,但没有收到单独的错误
关于java - 如何修复 Selenium ios 驱动程序上的 SessionNotCreatedException?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21759781/
IO 设备如何知道属于它的内存中的值在memory mapped IO 中发生了变化? ? 例如,假设内存地址 0 专用于保存 VGA 设备的背景颜色。当我们更改 memory[0] 中的值时,VGA
我目前正在开发一个使用Facebook sdk登录(通过FBLoginView)的iOS应用。 一切正常,除了那些拥有较旧版本的facebook的人。 当他们按下“使用Facebook登录”按钮时,他
假设我有: this - is an - example - with some - dashesNSRange将使用`rangeOfString:@“-”拾取“-”的第一个实例,但是如果我只想要最后
Card.io SDK提供以下详细信息: 卡号,有效期,月份,年份,CVV和邮政编码。 如何从此SDK获取国家名称。 - (void)userDidProvideCreditCardInfo:(Car
iOS 应用程序如何从网络服务下载图片并在安装过程中将它们安装到用户的 iOS 设备上?可能吗? 最佳答案 您无法控制应用在用户设备上的安装,因此无法在安装过程中下载其他数据。 只需在安装后首次启动应
我曾经开发过一款企业版 iOS 产品,我们公司曾将其出售给大型企业,供他们的员工使用。 该应用程序通过 AppStore 提供,企业用户获得了公司特定的配置文件(包含应用程序配置文件)以启用他们有权使
我正在尝试将 Card.io SDK 集成到我的 iOS 应用程序中。我想为 CardIO ui 做一个简单的本地化,如更改取消按钮标题或“在此保留信用卡”提示文本。 我在 github 上找到了这个
我正在使用 CardIOView 和 CardIOViewDelegate 类,没有可以设置为 YES 的 BOOL 来扫描 collectCardholderName。我可以看到它在 CardIOP
我有一个集成了通话工具包的 voip 应用程序。每次我从我的 voip 应用程序调用时,都会在 native 电话应用程序中创建一个新的最近通话记录。我在 voip 应用程序中也有自定义联系人(电话应
iOS 应用程序如何知道应用程序打开时屏幕上是否已经有键盘?应用程序运行后,它可以接收键盘显示/隐藏通知。但是,如果应用程序在分屏模式下作为辅助应用程序打开,而主应用程序已经显示键盘,则辅助应用程序不
我在模拟器中收到以下错误: ImageIO: CGImageReadSessionGetCachedImageBlockData *** CGImageReadSessionGetCachedIm
如 Apple 文档所示,可以通过 EAAccessory Framework 与经过认证的配件(由 Apple 认证)进行通信。但是我有点困惑,因为一些帖子告诉我它也可以通过 CoreBluetoo
尽管现在的调试器已经很不错了,但有时找出应用程序中正在发生的事情的最好方法仍然是古老的 NSLog。当您连接到计算机时,这样做很容易; Xcode 会帮助弹出日志查看器面板,然后就可以了。当您不在办公
在我的 iOS 应用程序中,我定义了一些兴趣点。其中一些有一个 Kontakt.io 信标的名称,它绑定(bind)到一个特定的 PoI(我的意思是通常贴在信标标签上的名称)。现在我想在附近发现信标,
我正在为警报提示创建一个 trigger.io 插件。尝试从警报提示返回数据。这是我的代码: // Prompt + (void)show_prompt:(ForgeTask*)task{
您好,我是 Apple iOS 的新手。我阅读并搜索了很多关于推送通知的文章,但我没有发现任何关于 APNS 从 io4 到 ios 6 的新更新的信息。任何人都可以向我提供 APNS 如何在 ios
UITabBar 的高度似乎在 iOS 7 和 8/9/10/11 之间发生了变化。我发布这个问题是为了让其他人轻松找到答案。 那么:在 iPhone 和 iPad 上的 iOS 8/9/10/11
我想我可以针对不同的 iOS 版本使用不同的 Storyboard。 由于 UI 的差异,我将创建下一个 Storyboard: Main_iPhone.storyboard Main_iPad.st
我正在写一些东西,我将使用设备的 iTunes 库中的一部分音轨来覆盖 2 个视频的组合,例如: AVMutableComposition* mixComposition = [[AVMutableC
我创建了一个简单的 iOS 程序,可以顺利编译并在 iPad 模拟器上运行良好。当我告诉 XCode 4 使用我连接的 iPad 设备时,无法编译相同的程序。问题似乎是当我尝试使用附加的 iPad 时
我是一名优秀的程序员,十分优秀!