Hello stackoverflow成员,
这是我第一次使用PhoneGap,在创建项目“Hello World”并使用Xcode打开它后,当我尝试在模拟器中运行时,我收到这些构建错误:
Unknown type name '_commandQueue'; did you mean 'CDVCommandQueue'?
Expected identifier or '('
Unknown receiver '_commandQueue'; did you mean 'CDVCommandQueue'?
No known class method for selector 'resetRequestId'
Unknown receiver '_commandQueue'; did you mean 'CDVCommandQueue'?
No known class method for selector 'fetchCommandsFromJs'
Unknown receiver '_commandQueue'; did you mean 'CDVCommandQueue'?
No known class method for selector 'dispose'
Property 'commandQueue' requires method 'commandQueue' to be defined - use @synthesize, @dynamic or provide a method implementation in this class implementation
有没有人知道如何通过任何机会解决这些错误?
我正在使用Xcode v4.3.3和最新版本的PhoneGap。
感谢您的时间,
乔纳森。
答案 0 :(得分:1)
添加行
@synthesize commandQueue = _commandQueue;
在__init方法之前并重建。