Modify SCPreferences persistent storage: Invalid Argument
问题 Currently trying to modify /Library/Preferences/com.apple.Bluetooth.plist in order to programmatically remove Bluetooth devices and running into an error. First of all, when SCPreferencesSetValue is called, System Configuration says Error Domain=com.apple.SystemConfiguration Code=0 "Success!" UserInfo={NSDescription=Success!} However, when I try to SCPreferencesCommitChanges , the framework tells me Error Domain=com.apple.SystemConfiguration Code=1002 "Invalid argument" UserInfo=