It turns out that the errors were related to a class setup for view with gradient background. The class which seems to be unstable in the current xcode was as follows:
import UIKit
@IBDesignable
class GradientView: UIView {
@IBInspectable var FirstColor: UIColor = UIColor.clear {
didSet{
updateView()
}}
@IBInspectable var SecondColor: UIColor = UIColor.clear {
didSet{
updateView()
}}
override class var layerClass: AnyClass {
get {
return CAGradientLayer.self
}
}
override func awakeFromNib() {
super.awakeFromNib()
self.layer.cornerRadius = 12
self.clipsToBounds = true
self.layer.borderWidth = 0.5 }
func updateView() {
let layer = self.layer as! CAGradientLayer
layer.colors = [FirstColor.cgColor, SecondColor.cgColor]
layer.startPoint = CGPoint(x:0.5,y:1.0)
layer.endPoint = CGPoint(x:0.5,y:0.0)
}
}
Using a different method for a gradient view class works fine. There seem to be many other issues with displaying storyboard graphics from the previous version of xcode, but none that produce errors, only lack of defintion of the view controllers... The gradient view class that worked is as follows:
class viewGradient: UIView {
override func awakeFromNib() {
super.awakeFromNib()
let gradientLayer = CAGradientLayer()
gradientLayer.frame = self.bounds
gradientLayer.colors = [UIColor.white.cgColor,UIColor.lightGray.cgColor,UIColor.systemTeal.cgColor]
self.layer.insertSublayer(gradientLayer, at: 0)
}
}
Post
Replies
Boosts
Views
Activity
I have the same issue but with either non-comsumable or subscription when trying to restore products. I have been through Apples sample code here - https://developer.apple.com/documentation/storekit/in-app_purchase/offering_completing_and_restoring_in-app_purchases . This sample project works fine except when restoring it only identifies the original purchase, so if there is an upgrade in the subscription it cannot be restored. I can only get one transaction out of it which contains the latest transaction number, latest transaction date, original purchased item ID and original purchase date (nothing in between). I am simulating it on xcode StoreKit only. Any help would be appreciated. I can't get the app on the store without a Restore button.
Same issue using MFMailComposeViewController. Message is sent successfully.
I have the same issue. Does Apple look at these questions? No solution posted?
deleted
Same problem. I updated to Monterey 12.3.1. Bluetooth will connect when pairing then disconnect immediately. Then the iphone says bluetooth to Mac is not supported. I have Mac Air 2015. The only good news is that the wired connection now works when it only worked sporatically before. So development is not completely dead.
Same here. Getting more frequent. Mine is a MacBook Air early 2015. It starts heating up, then the fan goes on. I usually hold the power button down to stop it for fear of the the crash cycle damaging the computer. The update to 12.6 and Xcode 14 is definitely the problem. I am curious about the devices. Are all devices crashing or just older ones?
Same problem here ever since I went to Xcode 14. My MacBook 2015 freezes first then starts heating up before crashing. I usually have to hole the power button down to shut it down before it heats up too much. I have posted this before but don’t see the post here??
I have the same issue using TestFlight. Unfortunately, setting the CKSharingSupport to "Yes" does not solve problem for me. Using iOS16.2.