草庐IT

deprecation-warning

全部标签

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显示出来了。那么我该如何

Android logcat 被 "W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op"淹没

当我在具有Googlemapfragment的Activity上拖动map时,我的logcat充满了"W/Google Maps Android API:GLHudOverlaydeprecated;draw():no-op".Googlemap版本build.gradle(应用程序):编译'com.google.android.gms:play-services-maps:9.2.1' 最佳答案 更新(2016年9月26日):我刚刚检查了play-services-maps9.6.1中的修复compile'com.google.a

Android logcat 被 "W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op"淹没

当我在具有Googlemapfragment的Activity上拖动map时,我的logcat充满了"W/Google Maps Android API:GLHudOverlaydeprecated;draw():no-op".Googlemap版本build.gradle(应用程序):编译'com.google.android.gms:play-services-maps:9.2.1' 最佳答案 更新(2016年9月26日):我刚刚检查了play-services-maps9.6.1中的修复compile'com.google.a

ios - swift ,让我在这个 : interfaceOrientation was deprecated in iOS 8. 0

这不是生死攸关的事情,但我没有运气破解它。谢谢。ifsession.canAddInput(videoDeviceInput){session.addInput(videoDeviceInput)self.videoDeviceInput=videoDeviceInputdispatch_async(dispatch_get_main_queue(),{//ERRORHEREletorientation:AVCaptureVideoOrientation=AVCaptureVideoOrientation(rawValue:self.interfaceOrientation.rawVa

swift - Firebase 存储 downloadURL( )' is deprecated: Use ` StorageReference.downloadURLWithCompletion()

通常我会使用url将图像更新到firebase存储:Storage.storage().reference().child("profile_images").child(fileName).putData(uploadData,metadata:nil){[weakself](metadata,err)inguardletstrongSelf=selfelse{return}ifleterr=err{print(err)}guardletprofileImageUrl=metadata?.downloadURL()?.absoluteStringelse{return}Profile

Swift 4.1 取消初始化和解除分配(容量 :) deprecated

我一直在这样说来形成CGPoint的C数组:letarr=UnsafeMutablePointer.allocate(capacity:4)defer{arr.deinitialize()arr.deallocate(capacity:4)}arr[0]=CGPoint(x:0,y:0)arr[1]=CGPoint(x:50,y:50)arr[2]=CGPoint(x:50,y:50)arr[3]=CGPoint(x:0,y:100)现在(Xcode9.3beta中的Swift4.1)deinitialize和deallocate(capacity:)都被弃用了。看来我现在应该说的可能

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