ios12

Xcode 10 breaks Ionic Cordova build

試著忘記壹切 提交于 2019-12-02 20:35:03
问题 I have an Ionic 3 App using Enterprise Distribution for a client and of course Apple likes to change settings on their new iOS. Everything was working fine on iOS 11 and when a client-user upgraded to iOS 12 their app completely broke and could not re-download. Steps I've Tried: Check iOS Provisioning Profile Status Rebuild App in Xcode 10.0 Archive and create new manifest and .ipa file for app Rebuild app in npm using ionic cordova build ios --prod Update any plugins that we're needing

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

我的未来我决定 提交于 2019-12-02 19:27:34
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: https://github.com/firebase/firebase-ios-sdk/issues/2283 Thanks to Igor Crashed: com.apple.main-thread 0

UILongPressGestureRecognizer not calling its target method

给你一囗甜甜゛ 提交于 2019-12-02 19:17:12
问题 This worked with devices on iOS 11, but with my device updated to iOS 12 it no longer works: //the viewcontroller is initiated with UIGestureRecognizerDelegate let longPressGesture = UILongPressGestureRecognizer(target: self, action: #selector(longPress)) //in cellForRowAt: longPressGesture.minimumPressDuration = 1.0 longPressGesture.delegate = self longPressGesture.cancelsTouchesInView = false cell.addGestureRecognizer(longPressGesture) @objc func longPress(longPressGestureRecognizer:

Which version of Xcode support iOS 12.2?

余生颓废 提交于 2019-12-02 17:28:15
I was running my self-developed software on my iPhone 7 which runs iOS 12.2 when an alert had popped up: This iPhone 7 (Model 1660, 1778, 1779, 1780) is running iOS 12.2 (16E5201e), which may not be supported by this version of Xcode. You have to download "device support files for the iOS" from here , And if you need any other "device support files for the iOS" you could download from here , Thin unzip it, Then go to your application folder, Right-click on the Xcode-Beta.app and chooseShow Package Contents, Navigate to Contents->Developer->Platforms->iPhoneOS.platform->DeviceSupport, Then

Unable to launch /private/var/containers/Bundle/Application/

空扰寡人 提交于 2019-12-01 09:12:44
I've been trying to test an app on an iOS 12 device, but every time I build it, it successfully builds on the device (my iPhone or iPad) but crashes and I receive this message: Unable to launch /private/var/containers/Bundle/Application/ (I'm using Xcode 10 beta 3 and Swift 4.2) Check if you already trusted the author of the app in your development device: Settings -> General -> Profiles & Device Management -> Company name -> Trust the app if not done yet. I hope this helps 🙂 I might have found a solution for you. After deleting and renewing all Apple certificates which was not effective, I

How to unarchive data with unarchivedObjectOfClass:fromData:error:?

旧街凉风 提交于 2019-12-01 04:20:34
问题 I am using unarchiveObjectWithData to unarchive data from NSUserDefaults and it is working good, but it was deprecated in iOS 12.0. Xcode suggests to use unarchivedObjectOfClass:fromData:error: , but this method does not work. I have an array of objects of my class to unarchive. I have tried to use unarchivedObjectOfClass:fromData:error: , also unarchivedObjectOfClasses:fromData:error: with all classes (NSArray, NSString, MYCLASS..) Works NSArray *stored = [NSKeyedUnarchiver

iOS 12 SMS Reading API?

微笑、不失礼 提交于 2019-12-01 03:49:52
In Beta version of iOS 12 I have observed it gives OTP(from SMS) in keyboard suggestion. So is there any API which they have created for developers ? Or that would just be an OS feature. It is OS feature but you need to set UITextField 's input view’s textContentType property oneTimeCode . otpTextField.textContentType = .oneTimeCode NOTE: Security Code AutoFill will only works with System Keyboard it will not work with custom keyboard. When you get OTP it will look something like this: Unfortunately, you can't read the full message, you can only read the verify-code in the message. Swift:

Navigator.mediaDevices.getUserMedia not working on iOS 12 Safari

爷,独闯天下 提交于 2019-12-01 03:39:32
As of iOS 12, navigator.mediaDevices.getUserMedia() is returning an error in Safari. To recreate this, open iPhone Web Inspector , then run this snippet in the console: var constraints = { audio: true, video: { width: 1280, height: 720 } }; navigator.mediaDevices.getUserMedia(constraints) .then(function() { console.log('getUserMedia completed successfully.'); }) .catch(function(error) { console.log(error.name + ": " + error.message); }); You'll see that this runs successfully in desktop browsers, and in iOS 11 Safari, but fails in iOS 12 Safari. NotAllowedError: The request is not allowed by

iOS 12 SMS Reading API?

让人想犯罪 __ 提交于 2019-12-01 01:04:34
问题 In Beta version of iOS 12 I have observed it gives OTP(from SMS) in keyboard suggestion. So is there any API which they have created for developers ? Or that would just be an OS feature. 回答1: It is OS feature but you need to set UITextField 's input view’s textContentType property oneTimeCode . otpTextField.textContentType = .oneTimeCode NOTE: Security Code AutoFill will only works with System Keyboard it will not work with custom keyboard. When you get OTP it will look something like this:

ARKit 2.0 – Scanning 3D Object and generating 3D Mesh from it

心不动则不痛 提交于 2019-11-30 15:57:18
The iOS 12 application now allows us to create an ARReferenceObject , and using it, can reliably recognize a position and orientation of real-world object. We can also save the finished .arobject file. But : ARReferenceObject contains only the spatial features information needed for ARKit to recognize the real-world object, and is not a displayable 3D reconstruction of that object. sceneView.session.createReferenceObject(transform: simd_float4x4, center: simd_float3, extent: simd_float3) { (ARReferenceObject?, Error?) in // code } func export(to url: URL, previewImage: UIImage?) throws { } Is