When I create a build using Xcode 13.3 or 13.4, the app crash on iOS 12 physical devices at launch. My current workaround is to use Xcode 13.2.1 instead which the app will run without crash. But, I believe that is not a permanent solution. The crash message:
dyld: Symbol not found: _OBJC_CLASS_$_HKElectrocardiogramQuery
2 Referenced from: /var/containers/Bundle/Application/C6835A53-158A-4A7A-8517-7E7824D1A334/MyApp Debug.app/MyApp Debug
3 Expected in: /System/Library/Frameworks/HealthKit.framework/HealthKit
4 in /var/containers/Bundle/Application/C6835A53-158A-4A7A-8517-7E7824D1A334/MyApp Debug.app/MyApp Debug
Does anyone know how to fix the issue? Will Apple address the issue for the upcoming Xcode update?