__weak typeof(self) wSelf = self報(bào)錯(cuò):- A parameter list without types is only allowed in a function definition. A corresponding warning tells me that __weak only applies to Objective-C object or block pointer types; type here is 'int'
在phone gap項(xiàng)目集成過程中,__weak typeof(self) wSelf = self;聲明都報(bào)了錯(cuò),分析原因可能是編譯器識(shí)別不了typeof關(guān)鍵字

2.jpg
解決辦法如下:
Xcode-> Build Settings-> C Language Dialect修改配置,C99改為GNU99,C99是不包含typeof的

3.png