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
Post not yet marked as solved Up vote post of sangwoon_kim Down vote post of sangwoon_kim
488 views

Replies

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...

  • ios 17.2.1 iphone 12 It works normally when built with xcode 15.

    Afterwards, upload the build to testfilght ios 16.5.1 iphone 14 pro After installation and execution, the same error occurs. Is it a problem with healthkit? Or is the compiler the problem?

    When checking the files created in the ios DeviceSupport folder, there is no symbol file in the iphone15,2 16.5.1 (20F75) folder. However, there is a symbol file in the iphone13,2 17.2.1 (21C66) folder.

Add a Comment