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

时间:2014-03-25 06:32:01

标签: android ios xcode cordova

我在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个警告就在那里。由于这些只是警告,我过去常常避免这种情况。

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

提前致谢..

1 个答案:

答案 0 :(得分:0)

您可能已更新到xcode 5.1并且您的版本cordova已经很老了。我建议您将cordova中的项目升级到上一版本和xcode。