Questions tagged [ios12]

The iOS12 tag should be used for questions specific to Apple's iOS 12 operating system. General iOS questions should use the iOS tag.

iOS 12 is the twelth version of Apple's iOS mobile operating system. It was announced at the company's Apple Worldwide Developers Conference (WWDC) on Sep 17, 2018. The ios12 tag should be used for questions specific to Apple's iOS 12 operating system. General iOS questions should use the ios tag.


683 questions
5
votes
3 answers

How to properly add an UICollectionView inside UITableViewCell using IOS 12

For some reasons I cannot properly display some items from a collection inside an tableview cell when using Xcode 10 beta. I tried all I know for the last 4 days. I made a small project sample to see what my issue is. Full code is here if someone…
Adrian
  • 19,440
  • 34
  • 112
  • 219
5
votes
0 answers

How should one handle iOS version-specific UIApplicationDelegate protocol method parameter types?

In iOS 12, the UIApplicationDelegate protocol defines: - (BOOL) application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> *…
5
votes
1 answer

.continueInApp option for IntentResponse is not opening app IOS 12 Beta 6

I am handling a custom intent action like this: internal func handle(intent: UsageIntent, completion: @escaping (UsageIntentResponse) -> Void) { completion(UsageIntentResponse(code: .continueInApp, userActivity: nil)) } It used to open the app,…
Pato Salazar
  • 1,447
  • 12
  • 21
5
votes
3 answers

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

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'…
DJ-Glock
  • 1,277
  • 2
  • 12
  • 39
5
votes
4 answers

Can I get the measurements for eyes using ARKit 2

I am working on a project which requires size of each eye and distance between the eyes using ARKit and True depth Camera on iPhone X with iOS 12 beta 4 on Xcode 10 beta 4. As I am new to ARKit, I am searching the solution online with very little…
Piyush Mathur
  • 1,617
  • 16
  • 33
5
votes
3 answers

Issue with CIQRCodeGenerator in CIFilter

I am updating existing app to support iOS 12 and strange issue with CIFilter appears. This is simple class with one function generate(): class QRGenerator { static func generate(from string: String) -> UIImage? { let context =…
Oleg Gordiichuk
  • 15,240
  • 7
  • 60
  • 100
5
votes
1 answer

How to use cache policy NSURLRequestReloadRevalidatingCacheData

The links below iOS - Download file only if modified (NSURL & NSData) http://nshipster.com/nsurlcache/ mentions that NSURLRequestReloadRevalidatingCacheData is not yet implemented in iOS 7. Is this implemented in iOS 12? If it is, can you tell me…
Ted
  • 22,696
  • 11
  • 95
  • 109
4
votes
2 answers

XCUITest ios 12 switch element value, is on?

I've come across a weird issue with swift xcuitest regarding switches in my tests. I'm testing settings app, to check if certain switches are on. I'm fairly new to swift but from resources I've read I've found I should do something like the…
Nick Hyland
  • 357
  • 1
  • 10
4
votes
1 answer

How can I enable client certificate ios 12 so that chrome uses it

On iOS 12, safari presents the client certificate and I am able to choose it and proceed to website because the client certificate was authenticated successfully. Chrome doesn’t ask and therefore fails to authenticate with the server. In earlier…
washingon
  • 981
  • 2
  • 10
  • 20
4
votes
2 answers

Request motion access with JavaScript in safari on iOS 12.2

In iOS 12.2, apple added a new “feature” where motion and orientation access in safari is disabled by default. Is there a way to use JavaScript to access this option (or trigger a system pop-up that the user can say yes or no to that will enable…
Matthew K
  • 86
  • 4
4
votes
5 answers

iOS Xcode 10 How to fix broken "New build system" - build.db: database is locked Possibly there are two concurrent builds

I'm having problem with the infamous: "/Users/n/Library/Developer/Xcode/DerivedData/Build/Intermediates/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location How do I fix…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
4
votes
2 answers

How to implement Material chips in UITextfield using Swift 4

I have needed this type of chips UITextfield with a cancel button let chipView = MDCChipView() chipView.titleLabel.text = "Furkan@vijapura.com" chipView.setTitleColor(UIColor.red, for: .selected) chipView.sizeToFit() chipView.backgroundColor(for:…
Furkan
  • 306
  • 4
  • 17
4
votes
5 answers

dyld_shared_cache_extract_dylibs failed for iPhone XS Max running ios 12.1.2

I am trying to run my app on iPhone XS Max running iOS 12.1.2, but till the end of the build and it returns "dyld_shared_cache_extract_dylibs failed" , i removed the supported files for it and rerun my app and it gives the same error , any…
RGeek
  • 51
  • 1
  • 3
4
votes
1 answer

Depth map from AVDepthData different from HEIC file depth data in Photoshop

I am using the following code to extract depth map (by following Apple's own example): - (nullable AVDepthData *)depthDataFromImageData:(nonnull NSData *)imageData orientation:(CGImagePropertyOrientation)orientation { AVDepthData *depthData =…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
4
votes
3 answers

Swift4.2 Type 'UIBackgroundTaskIdentifier' (aka 'Int') has no member 'invalid'

I'm getting a weird issue where code which works in one XCode project fails to compile in another. Both run Swift4.2. Why do I get "UIBackgroundTaskIdentifier has no member 'invalid' error? import UIKit import Foundation //Type…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407