ios12

Error: Could not build Objective-C module 'Firebase' with Swift 5

浪子不回头ぞ 提交于 2020-08-10 20:13:06
问题 I want to use Firebase with Swift 5, but error message appears. Could not build Objective-C module 'Firebase' I tried all resolutions on below pages, but I can't solve it: Error: Could not build Objective-C module 'Firebase' https://github.com/firebase/quickstart-ios/issues/672 import UIKit import Firebase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:

iOS 12 OTP keyboard suggestion

浪子不回头ぞ 提交于 2020-06-09 05:45:27
问题 I'm trying to implement the transfer of a one-time code from SMS to the field above the keyboard, as in the image. But for some reason the field above the keyboard is not displayed. Code: self.valueTextField.textContentType = UITextContentTypeOneTimeCode; UI hierarchy: +UIView CustomContentView UIImageView UITextField - valueTextField UITextFieldContentView I have read these materials:soQuestion and apple docs , and I saw a warning: If you use a custom input view for a security code input

Firebase notifications received on iOS 12 but not received on iOS 13

柔情痞子 提交于 2020-05-14 02:21:08
问题 Firebase push notifications sent but not received on iOS 13 and received on iOS 12 My xcode version 11.4 with Swift 5 I did the test on iOS 12.4.2, 13.4 and 13.4.1 The notifications not received in any app state (foreground, background and closed) I added a firebase project for my project and connected with APNS using both ways APNs auth key and APNs Certificates I tried the firebase notification composer and got the same result Here is my AppDelegate class code: import UIKit import

Object detection ARKit vs CoreML

随声附和 提交于 2020-03-20 07:55:33
问题 I am building ARKit application for iPhone. I need to detect specific perfume bottle and display content depending on what is detected. I used demo app from developer.apple.com to scan real world object and export .arobject file which I can use in assets. It's working fine, although since bottle is from glass detection is very poor. It detects only in location where scan was made in range from 2-30 seconds or doesn't detect at all. Merging of scans doesn't improve situation, something making

OpenGL deprecated in IOS 12, how to safely continue to use openGL on ios 12+ device?

帅比萌擦擦* 提交于 2020-01-29 17:46:05
问题 Apple say that Apps built using OpenGL ES will continue to run in iOS 12, but Open GL ES is deprecated in iOS 12. Games and graphics-intensive apps that previously used OpenGL ES should now adopt Metal. But I don't want to migrate my app from OpenGL to Metal because it's the same code for Android and I don't want to create 2 branch, so how can I do to continue to use OpenGL in futur iOS release ? 回答1: You more or less do not. Apple has made it abundantly clear that they are not interested in

How to NSKeyedUnarchiver.unarchiveObject

陌路散爱 提交于 2020-01-24 09:20:11
问题 I have a working code that works but deprecated: This part is fine: let archived = try? NSKeyedArchiver.archivedData(withRootObject: [defaultRecord] as NSArray, requiringSecureCoding: false) This is Deprecated: let records = NSKeyedUnarchiver.unarchiveObject(with: unarchivedObject as Data) as? [Record] 'unarchiveObject(with:)' was deprecated in iOS 12.0: Use +unarchivedObjectOfClass:fromData:error: instead Sounds simple as it is, I couldn't find a way to use the suggested method without

iOS 12 enterprise apps crash upon launch

北城以北 提交于 2020-01-24 00:35:38
问题 Whenever I run my iOS 12 app, the launch screen shows, and it closes immediately. I've tried creating a new project and run it on my device via USB, it crashes as well. However, if I run it on iOS 12 simulator, everything is working fine. Below is the details of my build properties and environments: OS: 10.14 macOS Mojave Appcelerator Studio: build 5.1.1 Titanium SDK: 7.4.1.GA iOS SDK Version: 12 Xcode: 10.0 The iPad that I am using has iOS version 12.0.1. It's not an issue with provisioning

iOS 12 Errors: appears to be from a different NSManagedObjectModel than this context's

左心房为你撑大大i 提交于 2020-01-23 01:24:29
问题 I started to get the following error when launching my application on iOS 12 simulator. Did anybody face issue like this? 2018-08-11 21:17:44.440144+0300 CafeManager[4633:128874] [error] error: The fetch request's entity 0x600001f6e940 'TablesTable' appears to be from a different NSManagedObjectModel than this context's I have global constant defined in AppDelegate: let viewContext = AppDelegate.viewContext And use it with NSFetchedResultsController for UITableView update, for example: import