Import HealthKit data from a device to simulator or another device. This project has been updated for Swift 6 and iOS 18 compatibility.
To import your own values, get an export.xml file from a device containing health data and replace the one added to this project in the Data folder:
- Open Health app
- Tap your avatar in the top-right corner
- Tap Export All Health Data
- Airdrop the exported file to your Mac
- Replace the export.xml file in the project
Not all HealthKit record types are supported.
This project has been updated to support Swift 6 concurrency model and iOS 18. Key updates include:
- Fixed Sendable conformance issues in all classes
- Properly isolated UI code with @MainActor
- Improved error handling for XML parsing
- Made SwiftLint optional for easier development
- Removed deprecated dependencies
See MIGRATION_NOTES.md for detailed information about the changes made.
- Xcode 16 or later
- iOS 18 or later
- Swift 6
This repository was forked from hkimport.