Post

Replies

Boosts

Views

Activity

Reply to Xcode 14 beta 3: Widget archival failed due to image being too large
I experienced the same issue, and unfortunately, I haven't found a bypass; however, this issue is relatively easy to address by simply down-sizing the images you display on your widgets. I use a function (attached below) to resize widget images to a width of 800 which I found to be a sweet spot. extension UIImage {   func resized(toWidth width: CGFloat, isOpaque: Bool = true) -> UIImage? {     let canvas = CGSize(width: width, height: CGFloat(ceil(width/size.width * size.height)))     let format = imageRendererFormat     format.opaque = isOpaque     return UIGraphicsImageRenderer(size: canvas, format: format).image {       _ in draw(in: CGRect(origin: .zero, size: canvas))     }   } }
Aug ’22