ios9

Xcode 7 - Code coverage data generation failed

一个人想着一个人 提交于 2019-11-30 01:09:32
When I run my tests I get an error: Code coverage data generation failed. Unable to retrieve the profile data files from 'UIDevice'. On console was printed warning: Timed out waiting 120 seconds for simulator to boot, current state is 1. What is the reason? If you are integrating your project with a 3rd party dynamic framework, you may need to add a path in your build settings. Look for ->Build Settings->"Runpath search paths" and make sure it includes the path to the framework. I was just seeing this exact issue myself after setting up my a project to use a framework my team has been working

.dylib file is missing

╄→гoц情女王★ 提交于 2019-11-30 00:49:38
问题 I am trying to compile my project in iOS 9. I am using XCode7. Here is how it looks like: error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/lib/libz.dylib (No such file or directory) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Applications

iOS 9 removed the possibility to change certain symbol colors using CSS

笑着哭i 提交于 2019-11-30 00:46:15
问题 We've been using various symbols such as checkmarks (✔) on our website and just noticed that with the release of iOS 9, Safari and other browsers have been updated to not respect the color attribute. The same behaviour can be found in both Safari and Chrome on iOS 9. <div>test ✔</div> div { color: #ff0000; -webkit-appearance: none; } https://jsfiddle.net/afb14b2k/1/ The above example displays fine on other platforms (e.g. OS X). Is there a known workaround to get this to work on iOS 9? Edit:

NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802) on a subdomain?

喜你入骨 提交于 2019-11-29 23:59:26
问题 Our app is working fine on both our production and development environments but on our staging environment we get the common error: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802) From my understanding this error occurs when you try to connect to a non https URL. We use ngrok for our local tunnel which has a https url and works fine. For production we also use https://ourdomain.com and it works fine. For staging we use https://staging.ourdomain.com and the error

How can I create UIStackView with variable spacing between views?

隐身守侯 提交于 2019-11-29 23:31:07
I have a simple horizontal UIStackView with several UIViews stacked inside. My goal is to create variable spacing between views. I am well aware that I can create constant space between the subviews using "spacing" property. However my goal is to create variable space. Please note, if at all possible, I would like to avoid using invisible views that act as spacers. The best I came up with was to wrap my UIViews in a separate UIStackView , and use layoutMarginsRelativeArrangement = YES to respect layout margins of my inner stack. I was hoping I could do something similar with any UIView without

Save video to a custom Album using Photos Framework in iOS

↘锁芯ラ 提交于 2019-11-29 23:19:07
问题 I want to save a video that is taken using a custom camera to a particular album say NewAlbum in the Photos Library using the Photos Framework . I have found some answers but they referred to use of ALAssetsLibrary which is deprecated now. Kindly let me know if you need any more details, also rectify me if I missed something. Thanks 回答1: I found a solution To create a PHAsset from an Video: Code Block 1: PhotoLibrary.shared().performChanges({ let createAssetRequest = PHAssetChangeRequest

UIImagePickerController does not work correct on ios 9.3 iPad 4

感情迁移 提交于 2019-11-29 23:12:20
After update ipad to ios 9.3 images are stop to display. What can be wrong with it? On iOS 9 and iOS 9.2 that was work as well. On other devices iPhone devices all work fine. private func presentPickerForLibrary() { let imagePicker = UIImagePickerController() imagePicker.allowsEditing = false imagePicker.sourceType = .PhotoLibrary imagePicker.delegate = self presentViewController(imagePicker, animated: true, completion: nil) } Seems to be linked to iCloud Photo Library setting. Turning this on in Preferences fixes the issue for me. I'm seeing this as well in an older, non-universal, iPhone app

iOS 9 app download from Amazon S3 SSL error: TLS 1.2 support

折月煮酒 提交于 2019-11-29 22:09:06
I get An SSL error has occurred and a secure connection to the server cannot be made. on iOS 9 if I try to download a file from amazon s3: https://s3.amazonaws.com/xyz/qer/IMG_0001.JPG From what I understand Amazon s3 supports TLS 1.2 see: https://forums.aws.amazon.com/thread.jspa?threadID=192512 S3 and Kinesis support TLS 1.2 at this time. "S3 and Kinesis support TLS 1.2 at this time." Aug 23, 2015 9:19 PM Not sure then why do I get this SSL error. The account should be configured to take advantage of TLS 1.2? I would've guessed that this should be 'on' by default. I don't want to put this

UIAlertController:supportedInterfaceOrientations was invoked recursively

自古美人都是妖i 提交于 2019-11-29 22:08:04
When two alert present one by one, i means one alert present and over them another alert presenting and app crashing. I have used UIAlertController to display alert. App crashing only in iOS 9 device. Please help me at this point. Annie This is a bug in iOS 9 that it failed to retrieve the supportedInterfaceOrientations for UIAlertController . And it seems it dropped to an infinite recursion loop in looking for the supportedInterfaceOrientations for UIAlertController (e.g., it tracks back to UIAlertControler -> UIViewController -> UINavigationController -> UITabBarController ->

What's the height of a UITabBar on iOS 8, iOS 9, iOS 10, and iOS 11?

旧城冷巷雨未停 提交于 2019-11-29 22:05:05
The height of the UITabBar seems to have changed between iOS 7 and 8/9/10/11. I'm posting this question for others to easily find the answer. So: What's the height of a UITabBar on iOS 8/9/10/11 on iPhone and iPad? For iOS 8, 9, and 10 the height is 49 points , both on iPad and iPhone and both in portrait and landscape. It used to be 56 points on iOS 7. For iOS 11, things get a bit more complicated: In portrait and regular landscape , the height is still 49 points . In compact landscape , the height is now 32 points . On iPhone X, the height is 83 points in portrait and 53 points in landscape.