xcode – 在iOS上升级到PhoneGap 2.0后,JSONKit.m中出现多个“格
发布时间:2020-12-14 17:59:43 所属栏目:百科 来源:网络整理
导读:我们刚刚在iOS上升级到PhoneGap / Cordova 2.0,但我们在 JSONKit.m中看到了多个警告. 有两类警告:(1)“格式字符串问题”和(2)“语义问题”. 以下是“格式字符串问题”的示例: /Users/macuser/Documents/CordovaLib/Classes/JSON/JSONKit.m:745:180: Format
我们刚刚在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') 以下是“语义问题”的示例: /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() 我们在Lion,Xcode 4.4上. 有什么线索为什么现在发生这种警告,而他们之前没有? 谢谢! 解决方法
来自Google网上论坛的用户:
Xcode 4.4使用更严格的更新编译器.这是无害的 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |