ios12

Using iOS8 and later devices with Xcode

被刻印的时光 ゝ 提交于 2019-12-04 08:32:00
问题 Using iOS8 and later devices with Xcode? 回答1: Well you have two options: 1)Straightforward, download Xcode 9 and you are good to go. 2) You need to put DeveloperDiskImage of iOS 11 in /Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport Put iOS 11 DiskImage and you can find this diskImage in Xcode9 at same path in case you want to continue with XCode8 Path of iOS 11 Disk Image: ~/Applications/Xcode9.app/Contents/Developer/Platforms/iPhoneOS.platform

Xcode 10 test failure when running on older iOS simulators - “Failed to load test bundle… no suitable image found”

旧城冷巷雨未停 提交于 2019-12-04 03:29:38
I've installed Xcode 10 and upgraded my iOS application to Swift 4.2. When I run my tests (both UI and Unit) via Xcode, on an iPhone simulator running iOS 12, the tests successfully start. When I attempt to run the tests on a simulator running a prior iOS version (e.g. iOS 10.3.1), I get a "failure to load the test bundle". These tests were running successfully on Xcode 9.4. I can run my app on this older simulator without an issue. The Xcode output is as follows ("Reading List" is the application name): 2018-09-16 15:11:36.667 ReadingList[11401:11478426] Failed to load test bundle from file:/

How do I use the updated UIImagePickerControllerDelegate iOS 12 API?

喜你入骨 提交于 2019-12-04 02:29:42
问题 How do I use the updated UIImagePickerControllerDelegate API since it changed to [UIIMagePickerController.InfoKey : Any] ? This part has been updated. I also searched here and I could not find an answer. import UIKit class adicionarNovoItemVc: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate { @IBOutlet weak var textFieldNome: UITextField! let imagePicker = UIImagePickerController() @IBOutlet weak var namePreview: UILabel! @IBOutlet weak var imagePreview:

How to detect vertical planes in ARKit?

陌路散爱 提交于 2019-12-03 17:55:43
问题 How is it possible to implement a vertical plane detection (i.e. for walls)? let configuration = ARWorldTrackingSessionConfiguration() configuration.planeDetection = .horizontal //TODO 回答1: Edit: This is now supported as of ARKit 1.5 (iOS 11.3). Simply use .vertical . I have kept the previous post below for historical purposes. TL;DR Vertical plane detection is not (yet) a feature that exists in ARKit. The .horizontal suggests that this feature could be being worked on and might be added in

siri shortcut button (INUIAddVoiceShortcutButton) shows wrong title when have multiple shortcuts (NSUserActivity)

*爱你&永不变心* 提交于 2019-12-03 12:42:04
I've 2 siri shortcuts in my App. I use NSUserActivity to donate these shortcuts. I've also created 2 NSUserActivityTypes in my info.plist. There are 2 view controllers which handle these shortcuts (1 view controller for 1 shortcut). If I add 1 siri shortcut from 1 view controller and then go to 2nd view controller the native siri shortcut button ( INUIAddVoiceShortcutButton ) on 2nd view controller automatically picks the first shortcut (created from 1st view controller) and shows "Added to Siri" with suggested phrase instead of showing "Add to Siri" button. I double checked that each

Show bounding box while detecting object using ARKit 2

南笙酒味 提交于 2019-12-03 10:21:03
问题 I have scanned and trained multiple real world objects. I do have the ARReferenceObject and the app detects them fine. The issue that I'm facing is when an object doest not have distinct , vibrant features it takes few seconds to return a detection result, which I can understand. Now, I want the app to show a bounding box and an activity indicator on top the object while it is trying to detect it. I do not see any information regarding this. Also, if there is any way to get the time when

What is Main Thread Checker in Xcode

帅比萌擦擦* 提交于 2019-12-03 06:35:42
I checked what's new in Xcode 9 documentation and I found this But i didn't understand what is that how I can use this with new Xcode 9. It can be enabled/disabled in the diagnostics option of the scheme. Besides, the "Pause on issues" is a comfortable option to debug these problems. From Apple documentation : The Main Thread Checker is a standalone tool for Swift and C languages that detects invalid usage of AppKit, UIKit, and other APIs on a background thread. Updating UI on a thread other than the main thread is a common mistake that can result in missed UI updates, visual defects, data

Crash in UIKitCore [UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:] iOS 12 only

时光怂恿深爱的人放手 提交于 2019-12-03 05:59:28
问题 I am getting decent number of crashes that are reported to Crashlytics. This only happens on iOS 12 and I do not know how to reproduce this. Perhaps the user is on WKWebView and trying to enter a password from the hint in 31 SafariServices 0x21d216740 __107+[_SFAutomaticPasswordInputViewController inputViewControllerWithAutoFillContext:passwordRules:completion:]_block_invoke.29 + 104 If anyone has similar crash or ideas, it is greatly appreciated. UPDATE : This issue is being tracked here:

Show bounding box while detecting object using ARKit 2

不想你离开。 提交于 2019-12-03 04:07:51
I have scanned and trained multiple real world objects. I do have the ARReferenceObject and the app detects them fine. The issue that I'm facing is when an object doest not have distinct , vibrant features it takes few seconds to return a detection result, which I can understand. Now, I want the app to show a bounding box and an activity indicator on top the object while it is trying to detect it. I do not see any information regarding this. Also, if there is any way to get the time when detection starts or the confidence percentage of the object being detected. Any help is appreciated. It is

How to show verification code suggestion on keyboard from Message

房东的猫 提交于 2019-12-02 23:37:31
I watched this video What's New in Cocoa Touch at WWDC 2018 and seen: How to show this information? JAL Review WWDC 2018 Session 204 - Automatic Strong Passwords and Security Code AutoFill . You will need to use a UITextField for entry and the system keyboard (no custom controls) and set the textContentType on it to .oneTimeCode (new in iOS 12). let securityCodeTextField = UITextField() securityCodeTextField.textContentType = .oneTimeCode The operating system will detect verification codes from Messages automatically (messages that contain the word "code" or "passcode") with this