总是在一个新的phonegap项目中显示一些警告

时间:2023-01-13 23:59:02

I have worked with several apps in phonegap. Every time I build a new project by using the given steps in following link of phonegap docs:

我在phonegap上使用过几个应用。每次我通过使用phonegap文档的链接来构建一个新项目:

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

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

But I have seen in every case there is 15 warnings always there:

但我看到在每一个案例中都有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:::'

I have seen in every version since 2.2.0. Now I am using latest version too.

自2.2.0以来,我在每个版本中都见过。现在我也在使用最新版本。

But it's really frustrating that every time when I am creating a new project XCode comes these 15 warnings. In fact in some of my old projects(already in apple store), these 15 warnings are there. As these were only the warnings, I used to avoid this.

但令人沮丧的是,每当我创建一个新的项目XCode时,都会出现以下15个警告。事实上,在我的一些旧项目(已经在苹果商店)中,有这15个警告。由于这些只是警告,我过去常常避免这样做。

But now it really becomes unbearable for me as there is no error and warning in my coding. So is there any problem of creating a new project by those steps or its a bug of phonegap? And if it is the problem of mine then can you please give me some idea how to fix this?

但是现在它真的变得让我无法忍受了,因为在我的编码中没有错误和警告。那么通过这些步骤创建一个新项目有什么问题吗?如果这是我的问题,你能给我一些解决办法吗?

Thanks in advance..

提前谢谢. .

1 个解决方案

#1


0  

It's posible you have update to xcode 5.1 and your version cordova is very older. I advice you upgrade project in cordova to last version and xcode too.

很可能你已经更新了xcode 5.1版,而你的cordova版本已经很老了。我建议你把科尔多瓦的项目升级到最新版本和xcode。

#1


0  

It's posible you have update to xcode 5.1 and your version cordova is very older. I advice you upgrade project in cordova to last version and xcode too.

很可能你已经更新了xcode 5.1版,而你的cordova版本已经很老了。我建议你把科尔多瓦的项目升级到最新版本和xcode。