我不確定爲什麼這會炸燬我。直到我建立在0.6/Lion之上時,這些錯誤纔出現,我知道這與0.3的距離相差很遠,但它仍然可以工作,除非使用xcode改變了一些質感。 我不明白爲什麼它會抱怨這條線。使我抓狂。任何幫助表示讚賞。錯誤:將MacRuby應用程序從0.3 Leopard移植到0.6 Lion會產生錯誤
/Users/matthew.sacks/dev/mrHost/mrhost/build/mrhost-axyfekrprsyhptctrrnpsyeqwgjv/Build/Products/Debug/mrhost.app/Contents/Resources/host.rb:83:in `set_host': wrong number of arguments (2 for 0) (ArgumentError)
from /Users/matthew.sacks/dev/mrHost/mrhost/build/mrhost-axyfekrprsyhptctrrnpsyeqwgjv/Build/Products/Debug/mrhost.app/Contents/Resources/rb_main.rb:22:in `swap_env'
from /Users/matthew.sacks/dev/mrHost/mrhost/build/mrhost-axyfekrprsyhptctrrnpsyeqwgjv/Build/Products/Debug/mrhost.app/Contents/Resources/rb_main.rb:69:in `<main>'
代碼爲https://github.com/msacks/mrhost/blob/master/host.rb