ios9

Delay/Wait in a test case of Xcode UI testing

浪子不回头ぞ 提交于 2019-11-28 02:49:21
I am trying to write a test case using the new UI Testing available in Xcode 7 beta 2. The App has a login screen where it makes a call to the server to login. There is a delay associated with this as it is an asynchronous operation. Is there a way to cause a delay or wait mechanism in the XCTestCase before proceeding to further steps? There is no proper documentation available and I went through the Header files of the classes. Was not able to find anything related to this. Any ideas/suggestions? Asynchronous UI Testing was introduced in Xcode 7 Beta 4. To wait for a label with the text

What does the shrink-to-fit viewport meta attribute do?

做~自己de王妃 提交于 2019-11-28 02:45:16
I'm having trouble finding documentation for this. Is it Safari specific? There was a recent bug in iOS 9 ( here ), the solution to which is adding shrink-to-fit=no to the viewport meta. What does this code do? It is Safari specific, at least at time of writing, being introduced in Safari 9.0. From the "What's new in Safari?" documentation for Safari 9.0 : Viewport Changes Viewport meta tags using "width=device-width" cause the page to scale down to fit content that overflows the viewport bounds. You can override this behavior by adding "shrink-to-fit=no" to your meta tag as shown below. The

Xcode7 beta no provisioning is it right? [duplicate]

谁说胖子不能爱 提交于 2019-11-28 02:02:41
问题 This question already has an answer here: Test iOS app on device without apple developer program or jailbreak 9 answers When I watch the WWDC 2015 video,I got a message:you can run on the device without provisioning.But when I use the Xcode7 beta for test,I must choose a provisioning for my iphone4s (iOS7.1) and the iPad(iOS9 beta)no need.Any one Know why?Is it only support iOS9 without provisioning? 回答1: Yeh now anyone can test iOS app on physical device so no need to enroll in developer

Xcode 7.1 beta 2- Disable ATS

a 夏天 提交于 2019-11-28 02:01:09
问题 Heyy, I have spent the last day or so racking my brain trying and failing to disable the ATS, I know it is deemed bad too, but I am currently only working on the app internally. I have tried many suggestions online to no avail, latest try below of info.plist. I am lost as to what to do? <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key>

Firebase queryOrderedByChild() method not giving sorted data

♀尐吖头ヾ 提交于 2019-11-28 01:58:17
问题 My database structure is some thing like this: { "users": { "alovelace": { "name": "Ada Lovelace", "score": 4, }, "ghopper": { ... }, "eclarke": { ... } } } I am trying to retrieve top 20 scores in descending order. let queryRef = FIRDatabase.database().reference().child("users").queryOrderedByChild("score").queryLimitedToLast(20) queryRef.observeSingleEventOfType(.Value, withBlock: { (querySnapShot) in print(querySnapShot.value) }) i am trying to get output like score": 4 score": 3 score": 2

edgesForExtendedLayout ignored on iOS9 when using custom animation

拜拜、爱过 提交于 2019-11-28 01:46:26
问题 iOS9 seems to ignore destination view controller's edgesForExtendedLayout when implementing custom animation using UIViewControllerAnimatedTransitioning , therefore the content ends up below the navigation bar. Any idea why this is happening? I've hosted an example at https://github.com/nmarkovic04/CustomAnimationTest. Running it on 8.4 and 9.1 shows the difference but you can most likely try any other 8.x and 9.x version. Running on XCode 7, Swift 2.0. 回答1: this in ViewDidLoad fixes it can

Is there a way to test my Xcode 7.2-compiled app with iOS 9.3?

回眸只為那壹抹淺笑 提交于 2019-11-28 00:35:11
I have the iOS 9.3 beta installed on a testing device as I'm running a few 9.3-compiled apps, but I also have an old app that is compiled in Xcode 7.2. I can run the app on any iOS 9.2 device with ease, but if I try to run it on the one iOS 9.3 beta device, I get the "could not find Developer Disk Image" error. Xcode 7.3 includes some updates to Swift, so I'd have to change a great deal of my files, and I just want to test to see if it's working fine. Is there any way to do this without having to change a lot of Swift code? It's on the App Store compiled for 9.2 and I can run it on my 9.3

'Communications error: <OS_xpc_error:' while recording video

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 23:10:39
问题 I am recording video using my application for 4-5 minutes, each time application shows following message in console and crashes. warning: could not load any Objective-C class information from the dyld shared cache. This will significantly reduce the quality of type information available. Communications error: <OS_xpc_error: <error: 0x19d846af0> { count = 1, contents = "XPCErrorDescription" => <string: 0x19d846e50> { length = 22, contents = "Connection interrupted" } }> iOS version : 9.1

NSInternalInconsistencyException: 'Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable(internal->fClient)'

為{幸葍}努か 提交于 2019-11-27 22:05:47
问题 I'm trying to get my app working in Xcode 7 beta but I'm hitting this exception: NSInternalInconsistencyException: 'Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable(internal->fClient)' Here's the callstack: 0 CoreFoundation 0x00000001063a89b5 __exceptionPreprocess + 165 1 libobjc.A.dylib 0x0000000105e20deb objc_exception_throw + 48 2 CoreFoundation 0x00000001063a881a +[NSException raise:format:arguments:] + 106 3 Foundation 0x00000001036f8b72 -[NSAssertionHandler

canOpenURL failing for system-wide URL schemes

谁说胖子不能爱 提交于 2019-11-27 22:01:40
问题 I'm running iOS 9b5. In my app, if a device can make a phone call, I want to color the text blue so it looks tappable. If not, I leave it black. In order to determine the device capabilities, I use: [[UIApplcation sharedApplication] canOpenURL:@"telprompt://5555555555"] As we all know, iOS 9 requires we whitelist any URL schemes we'll be using in our app as a privacy measure. I have this in my Info.plist: <key>LSApplicationQueriesSchemes</key> <array> <string>telprompt</string> </array> No