iOS Swift: unsafeMutableAddressor crash on iOS 8
问题 With the stack trace, unsafeMutableAddressor crash seems to be when it access AppConstant.kShowOverlay from controller's viewDidLoad() I have defined AppConstant.swift like below: struct AppConstant { // MARK: Properties static let kShowOverlay = false } Following is the stack trace from crashlytics: Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000048 0 libswiftCore.dylib 0x51bfc5c _TTWuRq_Ss9Indexable_GVSs5Sliceq__Ss14CollectionTypeSsFS1_10suffixFromuRq_S1_