草庐IT

smart-warning

全部标签

ios - warning "Class implementation may not have super class"的含义

我创建了一个非常基本的Objective-C类。我的类.h@interfaceMyClass:NSObject@endMyClass.m#import"MyClass.h"@interfaceMyClass()@end@implementationMyClass:NSObject{NSMutableArray*_myArray;}@endXcode在@implementation行显示以下警告:Classimplementationmaynothavesuperclass如果我删除NSMutableArray*_myArray;行,警告就会消失。这个警告是什么意思?我做错了什么?

iOS 照片框架 : is it possible to access photos from "People" smart folder?

我正在尝试从PHCollectionList访问PHAssetCollection。主要想法是从我的iPhone(iOS10.2)上的“People”智能文件夹中获取所有集合(和内部Assets)。要获取PHCollectionList,我正在使用当前代码:PHFetchResult*listFetchResult=[PHCollectionListfetchCollectionListsWithType:PHCollectionListTypeSmartFoldersubtype:PHCollectionListSubtypeSmartFolderFacesoptions:nil];

objective-c - Xcode/clang : Why do some, 不是全部,我的标题给 "warning: no rule to process file xxx for architecture arm7"

我正在使用ARC在Xcode4.2/Lion上使用clang构建一个iOS5应用程序。对我来说,好的做法是尽量消除尽可能多的警告,但我迷失了这一点。该应用程序有很多类,但它们的头文件数量有限(8或9)会给出如下链接器警告:warning:noruletoprocessfile'$(PROJECT_DIR)/TKMyClass.h'oftypesourcecode.objj.hforarchitecturearm7`我没有看到这些header有任何显着的共同点:一对是第3方OSS代码;其余的都是我自己的。一个是纯C头文件(没有对应的.c),只包含常量、#defines和枚举;一对是使用X

ios - XCode: 'Warning: Multiple build commands for output file' 但如果我删除重复项,我会收到错误消息

我得到错误:Warning:Multiplebuildcommandsforoutputfile/Users/me/Library/Developer/Xcode/DerivedData/myapp-csoyvdzaugzkszeagjrtzrfssudr/Build/Products/Debug-iphonesimulator/myapp.app/icon-72.pngWarning:Multiplebuildcommandsforoutputfile/Users/me/Library/Developer/Xcode/DerivedData/myapp-csoyvdzaugzksze

swift - 类型(:) function compiler warning in Swift 4

我已经将项目从Swift3升级到Swift4,但是编译器提示if中的条件不能调用非函数类型的值'AnyClass'(aka'AnyObject.Type')。如何解决?funcgetHandler(_type:AnyClass)->CSHandler?{forhandlerinhandlers{iftype(of:handler)===type{returnhandler}}returnnil} 最佳答案 我认为编译器混淆了参数type和方法type(of:)都具有相同的初始标记。您能否将参数名称从type更改为pType,如下所示

ios - Chartboost Swift 实现 : CoreData: warning: Unable to load class named 'CBHTTPRequestEntity' for entity 'CBHTTPRequestEntity'

我将Swift与Xcode6.3结合使用,并希望实现Chartboost。我已经添加了具有所需导入的桥接header#import#import#import#import#import#import现在,当使用我的应用ID启动时,出现以下错误:CoreData:warning:Unabletoloadclassnamed'CBHTTPRequestEntity'forentity'CBHTTPRequestEntity'.Classnotfound,usingdefaultNSManagedObjectinstead.令人惊讶的是,InterstitialAD显示出来了。那么我该如何

java - Tomcat 错误 : WARNING: Failed to retrieve JNDI naming context for container

当我尝试启动最近的在Tomcat7上部署Web应用程序。Dec31,201310:11:20AMorg.apache.catalina.deploy.NamingResourcescleanUpWARNING:FailedtoretrieveJNDInamingcontextforcontainer[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/crm]]sonocleanupwasperformedforthatcontainerjavax.naming.NameNotFoundException:

java - 安卓工作室 : Warning while I try to move Class to another package

这是一条错误消息。MethodObject.toString(),referencedinmethodSettingActivity.saveDataButtons(),willnotbeaccessibleinmodulepersonal-health-assistantbackup29octMethodString.trim(),referencedinmethodSettingActivity.setNullCurrentFocusedEditText(),willnotbeaccessibleinmodulepersonal-health-assistantbackup29oc

java - "Warning: Do not place Android context classes in static fields; this is a memory leak (and also breaks Instant Run)"

类似的问题是askedhere,here和here但上下文与此完全不同,而且codethatgavefromthiserror由Android和AndroidStudio的制造商编写。这是代码:publicclassMySingleton{privatestaticMySingletonmInstance;privateRequestQueuemRequestQueue;privateImageLoadermImageLoader;privatestaticContextmCtx;privateMySingleton(Contextcontext){mCtx=context;mRequ

java - 使用 Logback 但 Log4j 开始显示 WARN no Appenders

我正在使用logback进行日志记录,但它一直在工作;前几天我开始收到警告log4j:WARN找不到记录器(org.apache.axis.i18n.ProjectResourceBundle)的附加程序。log4j:WARN请正确初始化log4j系统。我没有使用log4j,也没有参与过这个项目。我的资源文件夹中有一个logback.xml。对于为什么开始出现此警告有任何想法吗? 最佳答案 您必须使用一个使用log4j的库。你能发布更多关于你的项目的信息吗?您可能应该将log4j桥放在类路径中。在这里阅读更多:http://www.