Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jakobg/hkimport

 
 

Repository files navigation

HKImport

About

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:

  1. Open Health app
  2. Tap your avatar in the top-right corner
  3. Tap Export All Health Data
  4. Airdrop the exported file to your Mac
  5. Replace the export.xml file in the project

Not all HealthKit record types are supported.

Swift 6 and iOS 18 Compatibility

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.

Requirements

  • Xcode 16 or later
  • iOS 18 or later
  • Swift 6

Origin

This repository was forked from hkimport.

About

✨ Import HealthKit data to the iOS simulator or a test device. 📱

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 97.0%
  • Shell 3.0%