CrashReport from Organizer

Can anyone assist with how to interpret this crash log?  it happens on iOS 12.4 and 12.5

Accepted Reply

That crash report is truncated (it’s missing the Binary Images section). Can you post the full version?

See Posting a Crash Report for hints on how to do this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • posted the crash report

Add a Comment

Replies

That crash report is truncated (it’s missing the Binary Images section). Can you post the full version?

See Posting a Crash Report for hints on how to do this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • posted the crash report

Add a Comment

Thanks for the full crash report.

Earlier you wrote:

it happens on iOS 12.4 and 12.5

Are you able to reproduce it on your iOS 12 test device?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • Thank you for your response. No, I don't have an iOS 12 device myself but the app is on the App store and it keeps crashing for users with that os

Add a Comment

An image from organiser @eskimo

I don't have an iOS 12 device myself

You need to fix that by either acquiring an iOS 12 test device or discontinuing support for iOS 12. Right now you’re shipping code you can’t test, which is doing both you and your customers a disservice.

Have you tried your app in the iOS 12 simulator? It’s possible that this crash might reproduce there.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thank you, Discontinuing support for iOS 12 is an option we are pursuing, We wanted to reach out to see if we can salvage the situation and I've seen a couple of posts about iOS 12 bug in the past thought this could be one of them, but thank you again.

Please do try it in the iOS 12 simulator though; it’s possible that the problem will reproduce there.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I have been able to run on ios 12 device there is a custom label but when I run my app on devices on ios 12 it crash with this error NSUnknownKeyException', reason: '[<EFontRegular 0x10999e050> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key boldColor but works fine for ios 13 and above

final class EFontRegular: BaseUILabel {
    
    override var fontType: UIFont? {
        return UIFont(name: EFontConstant.Name.regular.rawValue, size: fontSize)
    }
    
}
class BaseUILabel: UILabel {
    
    let lineSpacing: CGFloat = 8
    
    @IBInspectable var fontSize: CGFloat {
        return self.font.pointSize
    }
    
    @IBInspectable var fontType: UIFont? {
        return UIFont(name: EFontConstant.Name.regular.rawValue, size: EFontConstant.Size.regular.rawValue)
    }
    
    @IBInspectable var underline: Bool = false {
        didSet {
            if underline {
                self.underline()
            }
        }
    }
    
    @IBInspectable var alignCenter: Bool = false {
        didSet {
            if alignCenter {
                attributedText = text?.lineSpaced(lineSpacing, .center)
            }
        }
    }
    
    @IBInspectable var stringToColor: String = "" {
        didSet {
            let alignment: NSTextAlignment = alignCenter ? .center : .left
            attributedText = text?.lineSpacedWithInlineColor(lineSpacing, alignment, stringToColor: stringToColor)
        }
    }
    
    @IBInspectable var boldColor: UIColor {
//        R.color.primaryLabelColor() ?? UIColor()
        traitCollection.userInterfaceStyle == .light ? .black : .white
    }
    
    @IBInspectable var stringToBold: String = "" {
        didSet {
            let alignment: NSTextAlignment = alignCenter ? .center : .left
            attributedText = text?.lineSpacedWithInlineColor(lineSpacing, alignment, stringToColor: stringToBold, color: boldColor, bold: true, boldTextSize: fontSize)
        }
    }
    
    @IBInspectable var characterSpacing: Double = 0 {
        didSet {
            self.addCharacterSpacing(kernValue: characterSpacing)
        }
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        commonInit()
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        commonInit()
    }
    
    override func prepareForInterfaceBuilder() {
        super.prepareForInterfaceBuilder()
        commonInit()
    }
    
    func commonInit() {
        guard let customFont = fontType else {
            fatalError("""
                Failed to load the "\(String(describing: fontType?.fontName))" font.
                Make sure the font file is included in the project and the font name is spelled correctly.
                """
            )
        }

        font = UIFontMetrics.default.scaledFont(for: customFont)
        adjustsFontForContentSizeCategory = true

        attributedText = text?.lineSpaced(lineSpacing)
    }
}

when I run my app on devices on ios 12 it crash with this error

Yeah, I thought that might be the case. This is very specific to UIKit and thus outside of my area of expertise. If no one else chimes in here, I recommend that you open a DTS tech support incident and speak to one of DTS’s UIKit specialists.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • Thank you for your time thus far, I appreciate it. Personally, I'd like to just increase my minimum version and move on but my QA is having none of it. And I also noticed people with iPhone 6 can't seem to update their device os from 12

Add a Comment