HealthKit crashes starting with xcode15.

hello

We are currently developing using Healthkit.

Starting with xcode15, healthkit throws an error.

The code causing the error is HKQuantityType(.stepCount).

When I use this code An EXC_BAD_ACCESS (code=1, address=0x0) error occurs.

The error is: AppDelegate

It also appears when I call didFinishLaunchingWithOptions.

Is the linker the problem? Or is the Swift version the problem? Or HealthKit?

Cleaning and initializing DerivedData I also tried downgrading DriverKit 22.4, but the error still appears.

Please tell me how to solve this problem.

Test model information is as follows: -iPhone 14 Pro

  • iOS 16.5.1

First of all, when I downgraded to xcode14.3, it worked normally, so I am building with this.

However, I don't even want to think about the case where distribution is blocked by xcode 14.3 in the future.

Please let me know how I can fix this...

HealthKit crashes starting with xcode15.
 
 
Q