在iOS上升级到PhoneGap 2.0后,JSONKit.m中出现多个"格式字符串问题"警告

Cra*_*lot 5 xcode cordova

我们刚刚在iOS上升级到PhoneGap/Cordova 2.0,但我们在JSONKit.m中看到了多个警告.

有两类警告:(1)"格式字符串问题"和(2)"语义问题".

以下是"格式字符串问题"的示例:

/Users/macuser/Documents/CordovaLib/Classes/JSON/JSONKit.m:745:180: Format specifies type 'unsigned long' but the argument has type 'NSUInteger' (aka 'unsigned int')
Run Code Online (Sandbox Code Playgroud)

以下是"语义问题"的示例:

/Users/macuser/Documents/CordovaLib/Classes/JSON/JSONKit.m:2600:11: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
Run Code Online (Sandbox Code Playgroud)

我们在Lion,Xcode 4.4上.

有什么线索为什么现在发生这种警告,而他们之前没有?

谢谢!

Cra*_*lot 4

来自 Google 网上论坛的用户:

Xcode 4.4 使用更新的编译器,更加严格。它是无害的(目前),但此问题已修复:https ://issues.apache.org/jira/browse/CB-1164