HT200160: Connecting to legacy AFP services

Learn about Connecting to legacy AFP services
AussieHealer

Q: "Rep argument is not a dictionary"

I tried to follow these instructions in Mountain Lion and this command:

 

   sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_host_prefs_version -int 1

 

Returned this error:

 

   "Rep argument is not a dictionary". 

 

What do I do now?!? 

 

Thanks!

 

-Adam.

MacBook Pro, OS X Mountain Lion

Posted on Aug 15, 2012 5:09 AM

Close

Q: "Rep argument is not a dictionary"

  • All replies
  • Helpful answers

  • by mingsai,

    mingsai mingsai Aug 21, 2015 8:37 AM in response to AussieHealer
    Level 1 (30 points)
    Aug 21, 2015 8:37 AM in response to AussieHealer

    I found this link on the default you are trying to write. When I had the exact same error message (while setting a different default), it turns out I was missing a required attribute on the value I was trying to set. A list of all attributes can be found if you perform a read on the entire plist.

     

    sudo defaults read /Library/Preferences/com.apple.AppleShareClient.plist