更新时间:2023-01-23 17:28:49
Make sure whatever class engine
belongs to implements a horsePower
property, and/or has a horsePower
instance variable, and/or manually implements setHorsePower:
and horsePower
methods.
You are getting the error because you're trying to set the value of the horsePower
key but engine
's class does not properly implement a way to set the horsePower
key.