Last active
July 29, 2020 03:58
-
-
Save niw/70715236e4c3dd1e58c3d9de3f65bbc5 to your computer and use it in GitHub Desktop.
Configuration Profiles and User Defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>PayloadContent</key> | |
<array> | |
<dict> | |
<key>IsCute</key> | |
<true/> | |
<key>IsDog</key> | |
<false/> | |
<key>CryingSound</key> | |
<string>Meow</string> | |
<key>PayloadDisplayName</key> | |
<string>Cat configuration</string> | |
<key>PayloadIdentifier</key> | |
<string>Cat.845560D1-48AF-49AA-8A5D-B46FC6AE74C3</string> | |
<key>PayloadUUID</key> | |
<string>845560D1-48AF-49AA-8A5D-B46FC6AE74C3</string> | |
<key>PayloadType</key> | |
<string>Cat</string> | |
</dict> | |
</array> | |
<key>PayloadDisplayName</key> | |
<string>Cat configuration profile</string> | |
<key>PayloadIdentifier</key> | |
<string>Cat</string> | |
<key>PayloadType</key> | |
<string>Configuration</string> | |
<key>PayloadUUID</key> | |
<string>3E213DA8-17CB-47A0-988F-D351216E64BB</string> | |
</dict> | |
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
// This should print Optional(Meow) | |
print(UserDefaults(suiteName: "Cat")?.object(forKey: "CryingSound") as Any) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment