Xcode: EXC_BREAKPOINT (EXC_ARM_BREAKPOINT, subcode=0xe7ffdefe)

前端 未结 3 1749
一生所求
一生所求 2020-12-17 16:00

I\'m getting an EXC_BREAKPOINT (EXC_ARM_BREAKPOINT, subcode=0xe7ffdefe) error while running my app on a iOS7 device. The thing is, it runs smoothly on iOS7 simulator.

<
3条回答
  •  悲&欢浪女
    2020-12-17 16:45

    I ran into this problem, in iPhone 5, which is iOS 10.3.3.

    let date = Date()
    // Crashes in `iPhone 5`, but works in `iPhone 5s`.
    let time: Int = 1000 * Int(date.timeIntervalSince1970) //< Crash due to cast `Double` to `Int`
    
    // This crashes in `iPhone 5`, and `iPhone 5s` too.
    let time: Int32 = 1000 * Int32(date.timeIntervalSince1970)
    
    // It works fine in `iPhone 5`, and `iPhone 5s`.
    let time: Int64 = 1000 * Int64(date.timeIntervalSince1970)
    

提交回复
热议问题