iphone - Freelancer Iphone开发-接受Xcode警告吗?

标签 iphone ios xcode warnings

一个自由职业者正在为我开发Iphone应用程序。
该应用程序运行正常,但是在Xcode中加载源代码时收到37条警告。
您介意快速看一下并告诉我是否有一些我应该担心的警告。

谢谢你的帮助 !

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

最佳答案

这些警告中的大多数似乎来自项目中使用的第三方库,例如JSONKit和ShareKit。没什么大不了的,但就我个人而言。在各种版本的Xcode之间可能会产生警告。

关于iphone - Freelancer Iphone开发-接受Xcode警告吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12479177/

相关文章:

iphone - iOS6 不显示 MKAnnotationView 标注

ios - 通过提取框架在avcapture预览层上绘制形状

iOS 6 CollectionView 动态改变布局

swift - 二元运算符 '+=' 不能应用于类型的操作数。

ios - iPhone - PRFRelation 不保存对象

iphone - 重定向网址与 instagram 中注册的重定向网址不匹配

ios - Swift 将字节数组转换为字符串

ios - Apple FFT 给出不一致的结果

iphone - 从 key 链中的 key 对中提取公钥

ios - Swift 4 - 抛出函数的无效转换