Which version of Xcode support iOS 12.2?

You could follow these steps: 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 choose Show Package Contents, Navigate to Contents->Developer->Platforms->iPhoneOS.platform->DeviceSupport, … Read more

iOS 12 not supported by Xcode 9.4 : Could not locate device support files

iOS 12 is only supported by the beta of Xcode 10 or higher. If you want to use your iPhone 8 with this iOS version (NOT RECOMMENDED) with your Xcode 9.4 you can try to download the last beta of Xcode 10 and after connecting the iPhone to the mac go to this folder: /Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport … Read more

UIImageJPEGRepresentation has been replaced by instance method UIImage.jpegData(compressionQuality:)

The error is telling you that as of iOS 12 the old UIImageJPEGRepresentation function has been replaced with the new jpegData method on UIImage. Change: let imageData = UIImageJPEGRepresentation(image, 0.75) to: let imageData = image.jpegData(compressionQuality: 0.75) Similarly, the use of UIImagePNGRepresentation has been replaced with pngData().

Xcode 10 (iOS 12) does not contain libstdc++6.0.9

libstdc++ was deprecated 5 years ago. Apple’s more recent platforms (tvOS and watchOS) don’t support it. Support was removed from the iOS 12.0 Simulator runtime, but it remains in the iOS 12.0 (device) runtime for binary compatibility with shipping apps. You should update your project to use libc++ rather than libstdc++ by setting the CLANG_CXX_LIBRARY … Read more

In iOS 12, when does the UICollectionView layout cells, use autolayout in nib

For all solutions, note that there is no need to explicitly call reloadData in viewDidLoad: it will happen automatically. Solution 1 Inspired by Samantha idea: invalidateLayout asynchronously in viewDidLoad. override func viewDidLoad() { super.viewDidLoad() //[…] for _ in 0 ..< 1000 { array.append(randomKeyByBitLength(Int(arc4random_uniform(8)))!) } DispatchQueue.main.async { self.collectionView.collectionViewLayout.invalidateLayout() } } Solution 2 (imperfect, see DHennessy13 improvement … Read more

Automatic OTP verification in iOS?

In iOS 12 Apple has introduced feature called Security Code AutoFill. To use this in your app all you need to do is 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. WWDC video When you get … Read more

Model is running iOS 10.2 (14C92), which may not be supported by this version of Xcode

If somebody facing similar issue with Xcode 9.1 Open directory: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport Create new folder “11.2 (15C107)” (or “10.3 (14E269)” for older versions, depends on what exactly are you missing) Paste files from provided google drive folder 11.2 (15C107) (or 10.3 (14E269) if you need older files) Restart Xcode For other iOS versions you may check … Read more