简体   繁体   English

Iphone开发自由职业者-接受Xcode警告吗?

[英]Freelancer Iphone development - Xcode warnings acceptable?

A freelancer is developing an Iphone app for me. 一个自由职业者正在为我开发Iphone应用程序。 The app works fine but I get 37 warnings when I load the source code in Xcode. 该应用程序运行正常,但是在Xcode中加载源代码时收到37条警告。 Would you mind having a quick look and telling me is there are some warnings about which I should worry . 您介意快速看一下并告诉我是否有一些我应该担心的警告。

Thanks for your help ! 谢谢你的帮助 !

yyy Group
Semantic Issue Group
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/FMDatabase/FMDatabase.m:313:74: Second argument to 'va_arg' is of promotable type 'char'; this va_arg has undefined behavior because arguments will be promoted to 'int'
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/FMDatabase/FMDatabase.m:326:70: Second argument to 'va_arg' is of promotable type 'short'; this va_arg has undefined behavior because arguments will be promoted to 'int'
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/FMDatabase/FMDatabase.m:329:78: Second argument to 'va_arg' is of promotable type 'unsigned short'; this va_arg has undefined behavior because arguments will be promoted to 'int'
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/FMDatabase/FMDatabase.m:350:66: Second argument to 'va_arg' is of promotable type 'float'; this va_arg has undefined behavior because arguments will be promoted to 'double'
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:2598:31: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:2599:31: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:2600:31: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:2601:31: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:2602:31: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:2605:171: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:2606:171: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:2607:171: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:2608:171: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:2609:171: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:2791:40: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:2802:45: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/Twitter/SHKTwitter.m:63:17: Receiver type 'int' is not 'id' or interface pointer, consider casting it to 'id'
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/Twitter/SHKTwitter.m:63:16: Instance method '-boolValue' not found (return type defaults to 'id')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/UI/SHKFormControllerLargeTextField.m:97:120: Class method '+sharerTitle' not found (return type defaults to 'id')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/UI/SHKFormControllerLargeTextField.m:240:2: Instance method '-sendDidCancel' not found (return type defaults to 'id')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/UI/SHKFormControllerLargeTextField.m:246:5: Instance method '-sendForm:' not found (return type defaults to 'id')
Format String Issue Group
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/FMDatabase/FMDatabase.m:943:45: Format specifies type 'int' but the argument has type 'long'
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:745:180: Format specifies type 'unsigned long' but the argument has type 'NSUInteger' (aka 'unsigned int')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:746:134: Format specifies type 'unsigned long' but the argument has type 'NSUInteger' (aka 'unsigned int')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:752:98: Format specifies type 'unsigned long' but the argument has type 'NSUInteger' (aka 'unsigned int')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:773:114: Format specifies type 'unsigned long' but the argument has type 'NSUInteger' (aka 'unsigned int')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:786:114: Format specifies type 'unsigned long' but the argument has type 'NSUInteger' (aka 'unsigned int')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/JSONKit/JSONKit.m:795:114: Format specifies type 'unsigned long' but the argument has type 'NSUInteger' (aka 'unsigned int')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Core/Helpers/OAuth/OAMutableURLRequest.m:194:48: Format specifies type 'int' but the argument has type 'time_t' (aka 'long')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Core/SHK.m:523:54: Format specifies type 'int' but the argument has type 'NSTimeInterval' (aka 'double')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/Facebook/SHKFacebook.m:87:53: Format specifies type 'int' but the argument has type 'NSTimeInterval' (aka 'double')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/Flickr/LFHTTPRequest.m:460:72: Format specifies type 'unsigned long' but the argument has type 'NSUInteger' (aka 'unsigned int')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/Flickr/LFHTTPRequest.m:469:72: Format specifies type 'unsigned long' but the argument has type 'NSUInteger' (aka 'unsigned int')
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/Google Reader/SHKGoogleReader.m:245:65: Format specifies type 'int' but the argument has type 'NSTimeInterval' (aka 'double')
Cocoa API Issue Group
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/Facebook/FBRequest.m:152:29: Using 'stringWithString:' with a literal is redundant
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/Facebook/FBRequest.m:161:29: Using 'stringWithString:' with a literal is redundant
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/Twitter/SHKTwitter.m:610:21: Using 'stringWithString:' with a literal is redundant
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/ShareKit/Sharers/Services/Vkontakte/SHKVkontakte.m:409:20: Using 'stringWithString:' with a literal is redundant

It appears that most of these warnings are from third party libraries being used in the project such as JSONKit and ShareKit. 看来,这些警告中的大多数来自项目中使用的第三方库,例如JSONKit和ShareKit。 Nothing too major pops out at me though personally. 没什么大不了的,但就我个人而言。 Warnings can be produced between various versions of Xcode. 在各种版本的Xcode之间可能会产生警告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM