Post

Replies

Boosts

Views

Activity

Reply to How to reproduce error: "The open file operation failed to connect to the open and save panel service"
Thank you for that - running on a Mac without Xcode installed did indeed reproduce the issue! Adding the following to the info.plist fixed the error that was appearing: <key>UTImportedTypeDeclarations</key> <array> <dict> <key>UTTypeDescription</key> <string>Core Data Model</string> <key>UTTypeIcons</key> <dict/> <key>UTTypeIdentifier</key> <string>com.apple.xcode.model.data</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <array> <string>xcdatamodel</string> </array> </dict> </dict> </array> The app is used to open and view .xcdatamodel file (which is actually a package), and then writes an additional file within the .xcdatamodel package. Unfortunately, when Xcode isn't installed, the .xcdatamodel isn't recognised as a package, just a regular folder. I resolved this by adding a new exported type that conformed to com.apple.package <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>com.apple.xcode.model.data</string> <string>com.apple.package</string> </array> <key>UTTypeDescription</key> <string>Core Data Model</string> <key>UTTypeIcons</key> <dict/> <key>UTTypeIdentifier</key> <string>uk.co.joylordsystems.xcode.model.data</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <array> <string>xcdatamodel</string> </array> </dict> </dict> </array> This seems to have resolved my issues. Again, thank you for your help!
Mar ’23
Reply to How to reproduce error: "The open file operation failed to connect to the open and save panel service"
@julia_brockovich I've submitted feedback FB12021387. Document Types from info.plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeIconSystemGenerated</key> <integer>1</integer> <key>CFBundleTypeName</key> <string>Core Data Model</string> <key>CFBundleTypeRole</key> <string>Viewer</string> <key>LSHandlerRank</key> <string>Alternate</string> <key>LSItemContentTypes</key> <array> <string>com.apple.xcode.model.data</string> </array> </dict> </array> <key>ITSAppUsesNonExemptEncryption</key> <false/> </dict> </plist> The app is a macOS Document app built using SwiftUI
Feb ’23