当前位置:  开发笔记 > 前端 > 正文

始终在新的phonegap项目中显示一些警告

如何解决《始终在新的phonegap项目中显示一些警告》经验,为你挑选了0个好方法。

我曾在phonegap中使用过几个应用程序.每次我使用phonegap docs的以下链接中的给定步骤构建新项目时:

http://docs.phonegap.com/en/2.0.0/guide_getting-started_ios_index.md.html

但我在每种情况下都看到有15个警告:

/Users/Webgrity/Desktop/BramAutoGroup/BramAutoGroup/Classes/AppDelegate.m:81:25: 'useSplashScreen' is deprecated: Deprecated in Cordova 2.5. Add/Remove the SplashScreen plugin instead of setting this property. 

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFile.m:804:54: Implicit conversion loses integer precision: 'long long' to 'unsigned long'

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFile.m:805:108: Implicit conversion loses integer precision: 'long long' to 'NSUInteger' (aka 'unsigned int')

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFile.m:1075:54: Implicit conversion loses integer precision: 'long long' to 'unsigned long'

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFile.m:1076:108: Implicit conversion loses integer precision: 'long long' to 'NSUInteger' (aka 'unsigned int')

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFile.m:1282:98: Implicit conversion loses integer precision: 'unsigned long long' to 'int'

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFileTransfer.m:56:30: Implicit conversion loses integer precision: 'long long' to 'CFIndex' (aka 'long')

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFileTransfer.m:67:12: Implicit conversion loses integer precision: 'long long' to 'CFIndex' (aka 'long')

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFileTransfer.m:281:46: Implicit conversion loses integer precision: 'long long' to 'unsigned long'

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFileTransfer.m:282:100: Implicit conversion loses integer precision: 'long long' to 'NSUInteger' (aka 'unsigned int')

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVURLProtocol.m:167:46: Implicit conversion loses integer precision: 'long long' to 'unsigned long'

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVURLProtocol.m:168:100: Implicit conversion loses integer precision: 'long long' to 'NSUInteger' (aka 'unsigned int')

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVContacts.m:94:58: Undeclared selector 'presentViewController:::'

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVContacts.m:154:58: Undeclared selector 'presentViewController:::'

/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVContacts.m:196:50: Undeclared selector 'presentViewController:::'

我在2.2.0以后的每个版本中看到过.现在我也在使用最新版本.

但是,每当我创建一个新项目时,XCode会发出这15个警告,这真是令人沮丧.事实上,在我的一些旧项目(已经在苹果商店),这15个警告就在那里.由于这些只是警告,我过去常常避免这种情况.

但是现在我真的变得无法忍受,因为我的编码中没有错误和警告.那么通过这些步骤创建一个新项目或者它是一个手机错误的错误是否有任何问题?如果这是我的问题,那么请你告诉我如何解决这个问题?

提前致谢..

推荐阅读
凹凸曼00威威_694
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有