Area:
iCloud / CloudKit
Summary:
Custom extended file attribute is set for files synchronized via iCloud Drive between macOS and iOS. This attribute is lost during synchronization although Apple's "File System Programming Guide" is mentioning all "attributes are copied to iCloud and to the user's other devices too". Using custom attribute "de.stitchbuddy.threads" or "com.apple.ResourceFork" does not make any difference.
Steps to Reproduce:
1. Set extended file attribute "de.stitchbuddy.threads" via setxattr() for a file saved at an iCloud-synched folder on one platform, e.g. macOS; attribute size is less 1 kB. Objective-C code of method attached.
2. Verify the attribute is set via getxattr() in code or xattr in Terminal
3. Wait for the file to by synchronized to the other platform, e.g. iOS (device)
4. Try to read the same attribute via getxattr() in code (same class / method as used on macOS). Objective-C code of method attached.
Expected Results:
The extended attribute exists and has the same value on both platforms.
Actual Results:
The synched file does not have the extended attribute. Reproducible for new or updated files.
Version/Build:
iOS 12.1.4, macOS 10.14.3, iCloud Drive
Configuration:
Two companion apps, using the same class and method to read / write extended attributes; build with Xcode 10.1, macOS SDK 10.14, deployment target 10.10 resp. iOS SDK 12.1, deployment target 9.0.
Comment:
Other developers are observing the same behavior, here is a well-describing article about the problem: eclecticlight.co/2018/01/29/ic…nd-tags-transferred-apps/
iCloud / CloudKit
Summary:
Custom extended file attribute is set for files synchronized via iCloud Drive between macOS and iOS. This attribute is lost during synchronization although Apple's "File System Programming Guide" is mentioning all "attributes are copied to iCloud and to the user's other devices too". Using custom attribute "de.stitchbuddy.threads" or "com.apple.ResourceFork" does not make any difference.
Steps to Reproduce:
1. Set extended file attribute "de.stitchbuddy.threads" via setxattr() for a file saved at an iCloud-synched folder on one platform, e.g. macOS; attribute size is less 1 kB. Objective-C code of method attached.
2. Verify the attribute is set via getxattr() in code or xattr in Terminal
3. Wait for the file to by synchronized to the other platform, e.g. iOS (device)
4. Try to read the same attribute via getxattr() in code (same class / method as used on macOS). Objective-C code of method attached.
Expected Results:
The extended attribute exists and has the same value on both platforms.
Actual Results:
The synched file does not have the extended attribute. Reproducible for new or updated files.
Version/Build:
iOS 12.1.4, macOS 10.14.3, iCloud Drive
Configuration:
Two companion apps, using the same class and method to read / write extended attributes; build with Xcode 10.1, macOS SDK 10.14, deployment target 10.10 resp. iOS SDK 12.1, deployment target 9.0.
Comment:
Other developers are observing the same behavior, here is a well-describing article about the problem: eclecticlight.co/2018/01/29/ic…nd-tags-transferred-apps/
Diese Seite bleibt aus technischen Gründen unbedruckt.