.plist返回:无效的属性列表,plutil说好!
我正在尝试创建我的第一个.plist。我想在登录时安装一个ssh驱动器,所以每次启动Mac时都不必输入命令! 命令是: sshfs -o allow_other,defer_permissions user@xxx.xxx.xxx.xxx:/home/user/ /Users/user/Desktop/Website/ -o reconnect plist看起来像这样: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple$ <plist version="1.0"> <dict> <key>Label</key> <string>name.plist</string> <key>ProgramArguments</key> <array> <string>/usr/local/bin/sshfs</string> <string>-o allow_other,defer_permissions</string> <string>user@xxx.xxx.xxx.xxx:/home/user</string> <string>/mnt/User</string> <string>-o reconnect,volname=User</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist> 我已经按照教程说完了.plist,我必须运行这两个命令: launchctl load ~/path/name.plist launchctl start ~/path/.name.plist 然后它返回 Invalid property …