我正在尝试将一个库添加到我的 Rubymotion 项目中,它没有显示任何错误,但我似乎无法访问库中的类,在我的 rakefile 中我有......
app.vendor_project('vendor/iSpeechSDK', :static,
:products => ["libiSpeechSDK.a"],
:headers_dir => "Headers")
app.frameworks += ['iSpeechSDK']
Headers目录下的.a文件和.h文件都存在
在我的 app_delegate 我有这个代码......
@sdk = iSpeechSDK.sharedSDK
但我得到错误...
模拟 ./build/iPhoneSimulator-5.0-Development/Mirror Mirror.app (main)> 2012-07-19 10:50:05.978 Mirror Mirror[26195:11903] app_delegate.rb:13:in application:didFinishLaunchingWithOptions:': undefined local variable or method
iSpeechSDK' for # (NameError) 2012-07-19 10:50:05.980 Mirror Mirror[26195:11903] * 由于未捕获的异常“NameError”而终止应用程序,原因:“app_delegate.rb:13:in application:didFinishLaunchingWithOptions:': undefined local variable or method
iSpeechSDK”for #(NameError)'*第一次抛出调用堆栈:(0xa88052 0x417d0a 0x207954 0x5c285 0x5bce1)