HealthKit crash occurs after xcode15 update

hello

After updating to xcode 15.1 while using xcode 14.3, I keep getting EXC_BAD_ACCESS (code=1, address=0x0) in HealthKit's HKQuantityType(.stepCount).

We also created and tested HKQuantityType(.stepCount) in the appDelegate class. But it comes out the same as above.

I think there has been a change in library building and linking starting from xcode15.

Please guide me what to do about this problem.

The test model is iphone 14 pro It's 16.5.1.

Post not yet marked as solved Up vote post of sangwoon_kim Down vote post of sangwoon_kim
339 views
  • We are having the same issue. Reverting back to HKObjectType.quantityType(forIdentifier: .stepCount)!

  • @bickster I tried your suggestion. But the same thing happens.

    I have no choice but to raise the minimum version to 15.0.

    I've been trying to solve this for over 3 months, and I've even contacted Apple Report and delivered a demo project that shows the symptoms, but I haven't received any response.

    Every time Apple upgrades the xcode and swift versions, some kind of issue arises, and it makes me angry every time.

Add a Comment