Okay I've solved it: Its important to convert the string to an NSString. The dictionary would become this:
let metadata : NSDictionary = [
HKMetadataKeySyncIdentifier : NSString(string: match.syncIdentifier.uuidString),
HKMetadataKeySyncVersion: match.syncVersion
]
I'm leaving it up here in case somebody else comes across the same problem
Topic:
App & System Services
SubTopic:
Hardware
Tags: