UICollectionViewFlowLayout estimatedItemSize does not work properly with iOS12 though it works fine with iOS 11.*

In my case, I solved this by explicitly adding the following constraints to the cell’s contentView. class Cell: UICollectionViewCell { // … override func awakeFromNib() { super.awakeFromNib() // Addresses a separate issue and prevent auto layout warnings due to the temporary width constraint in the xib. contentView.translatesAutoresizingMaskIntoConstraints = false // Code below is needed to … Read more

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