最近情感开始在下面出现错误,即使是简单的请求
$ rake
Build ./build/iPhoneSimulator-6.1-Development
Build vendor/Pods
Simulate ./build/iPhoneSimulator-6.1-Development/Network.app
(main)> AFMotion::HTTP.get("http://google.com") do |result|
(main)> p result.body
(main)> end
2013-05-21 18:29:00.904 Network[75552:11303] http.rb:37:in `parameter_encoding': uninitialized constant AFMotion::HTTP::AFFormURLParameterEncoding (NameError)
from http.rb:14:in `block in included:'
=> #<NameError: uninitialized constant AFMotion::HTTP::AFFormURLParameterEncoding>
这段代码在几周前有效。有没有人有同样的问题,并且知道如何解决这个问题?
我的版本设置如下:
ruby version: 2.0.0-p195 (1.9.3-p194 also fails)
rubymotion version: 2.0
afmotion version: 0.4
AFNetworking version: 1.2.1