Post

Replies

Boosts

Views

Activity

Reply to Core Data transformable attribute problem in Xcode16
Hi everyone, I also get similar Xcode errors with Xcode 16 when running the app on a device but not with the simulator: fault: Declared Objective-C type ".NSAttributedString" for attribute named title is not valid> CoreData: fault: Declared Objective-C type ".NSAttributedString" for attribute named title is not valid CoreData: Declared Objective-C type ".NSAttributedString" for attribute named title is not valid The attribute title is declared with: @NSManaged public var title: NSAttributedString In the model, it is configured with: type: Transformable Optional, Transient, etc. all unchecked Transformer: DescriptionValueTransformer Custom class: NSAttributedString Module: Current Product Module The ValueTransformer is declared with: ValueTransformer.setValueTransformer(DescriptionValueTransformer(), forName: .descriptionToDataTransformer) And here is the DescriptionValueTransformer class : @objc(DescriptionValueTransformer) public class DescriptionValueTransformer: NSSecureUnarchiveFromDataTransformer { public override class func allowsReverseTransformation() -> Bool { return true } public override class func transformedValueClass() -> AnyClass { return NSAttributedString.self } public override class var allowedTopLevelClasses: [AnyClass] { return super.allowedTopLevelClasses + [NSAttributedString.self] } public override func transformedValue(_ value: Any?) -> Any? { guard let data = value as? Data else { preconditionFailure("Wrong data type: value must be a Data object; received \(type(of: value))") } return super.transformedValue(data) } public override func reverseTransformedValue(_ value: Any?) -> Any? { guard let description = value as? NSAttributedString else { preconditionFailure("Wrong data type: value must be a NSAttributedString object; received \(type(of: value))") } return super.reverseTransformedValue(description) } } extension NSValueTransformerName { public static let descriptionToDataTransformer = NSValueTransformerName(rawValue: "DescriptionValueTransformer") } Any help would be very appreciated.
Mar ’25
Reply to Xcode 15.0 Release doesn't connect at all iOS 17
Same issue — Impossible to connect the iPhone iOS 17 to Xcode 15 I have uninstalled FortiClient on both the MacBook Pro (macOS 14.1 Beta build 23B5046f) and the iPhone (iOS 17.1 build 21B5045h), cleaned DerivatedData, rebooted the Mac and the iPhone, re-established the trust between both devices. The problem remains while I do not encounter issues to connect an iPad running iPadOS 16.x. The Devices and Simulators window is even empty!
Oct ’23