我们刚刚在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上.
有什么线索为什么现在发生这种警告,而他们之前没有?
谢谢!
来自 Google 网上论坛的用户:
Xcode 4.4 使用更新的编译器,更加严格。它是无害的(目前),但此问题已修复:https ://issues.apache.org/jira/browse/CB-1164
| 归档时间: |
|
| 查看次数: |
3914 次 |
| 最近记录: |