EXC_BAD_ACCESS (code=2, address=0x16a76fff0) Xcode 15.3

Hello, I created an object which is inheriting from CLLocation.
The main cause is that I want to store more properties

Moreover I override the init function:

override init(latitude: CLLocationDegrees, longitude: CLLocationDegrees) {
        super.init(latitude: latitude, longitude: longitude)
}

The objects aren't nil? Can anyone help

Greeting Fabian

Can you post a full crash report? See Posting a Crash Report for advice on how to do that.

Share and Enjoy

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

Hello @eskimo,

that is what I get:

  • longitude CLLocationDegrees 0
  • latitude CLLocationDegrees 0
  • self BikeComputer.Location 0x0000000303ee7f60

I’m sorry but I need a crash report. Posting a Crash Report describes how to get when you see a crash in Xcode. It also has links to official documentation about crash repors.

Share and Enjoy

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

i fixted thank you.... it was a design error

EXC_BAD_ACCESS (code=2, address=0x16a76fff0) Xcode 15.3
 
 
Q