I'm tying to create a plist using "defaults write", unfortunately I can't use plutil or any other utility.
HEX data: 62706c69 73743030 d4010203
This is the plist I need to create
<?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>Architectures for arm64</key>
<dict>
<key>org.my.test</key>
<array>
<data>
YnBsaXN0MDDUAQID
</data>
<string>x86_64</string>
</array>
</dict>
</dict>
</plist>
I'm using this syntax:
defaults write ~/Desktop/org.my.test '{"Architectures for arm64" = {org.my.test = (-data <62706c69 73743030 d4010203>, "x86_64");};}'
and I'm getting the error: 2021-06-26 09:21:09.280 defaults[27260:1348922] Could not parse: {"Architectures for arm64" = {org.my.test = (-data <62706c69 73743030 d4010203>, "x86_64");};}. Try single-quoting it.
I can't figure out where should I put the single-quoting
can anyone please help me?