草庐IT

unused-dependency

全部标签

c++ - 更新 visual studio 2017,现在出现编译错误 C7510 : 'Callback' : use of dependent template name must be prefixed with 'template'

我尝试在更新(15.8.0)后像往常一样编译我的项目。我将showincludes设置为yes以找出错误的来源,但它都是系统代码。从stdafx.cpp开始,它遍历所有包含和错误:1>Note:includingfile:C:\ProgramFiles(x86)\WindowsKits\10\Include\10.0.17134.0\shared\pshpack8.h1>Note:includingfile:C:\ProgramFiles(x86)\WindowsKits\10\Include\10.0.17134.0\shared\poppack.h1>Note:includingf

Android 架构组件 : Gradle sync error for dependency version

我正在尝试将ViewModel和LiveData添加到Kotlin应用程序。我在模块的build.gradle中添加了以下依赖项:implementation"android.arch.lifecycle:extensions:1.1.1"kapt"android.arch.lifecycle:compiler:1.1.1"testImplementation"android.arch.core:core-testing:1.1.1"我收到以下错误:Androiddependency'android.arch.lifecycle:runtime'hasdifferentversionf

Android 架构组件 : Gradle sync error for dependency version

我正在尝试将ViewModel和LiveData添加到Kotlin应用程序。我在模块的build.gradle中添加了以下依赖项:implementation"android.arch.lifecycle:extensions:1.1.1"kapt"android.arch.lifecycle:compiler:1.1.1"testImplementation"android.arch.core:core-testing:1.1.1"我收到以下错误:Androiddependency'android.arch.lifecycle:runtime'hasdifferentversionf

ios - 在 Xcode 中收到 "Check dependencies warning: skipping file"错误

我一直在认真按照“AddingtheGoogleMapsSDKforiOStoyourproject”的说明进行操作'使用GoogleMapsiOS1.5.0SDK和Xcode5.0,同时构建到iPhone4S。构建项目时,我收到以下警告:Checkdependencieswarning:skippingfile'/Users/Michael/iOSDevelopment/C&Groughdraft/ComingAndGoingRoughDraft/GoogleMaps.framework/Versions/A/Resources/GoogleMaps.bundle'(unexpect

ios - 如何将钥匙串(keychain)传递给 xcodebuild 的 "Check dependencies"步骤

我正在使用iOS5SDK构建一个iPhone应用程序,并从命令行对其进行签名,并使用我的非默认钥匙串(keychain)中的证书对其进行签名。如果我将该钥匙串(keychain)设置为默认钥匙串(keychain),一切正常,但如果没有它,它会在“检查依赖项”步骤中失败,因为它正在搜索默认钥匙串(keychain)。虽然codesign步骤使用OTHER_CODE_SIGN_FLAGS,但“Checkdependencies”步骤没有。这可能只是Apple的一个错误,它在检查时应该尊重这些标志。如何在“检查依赖项步骤”中指定要搜索的钥匙串(keychain)?如果做不到这一点,我该如何

ios - iOS6 上的自动布局问题 : "All dependent constraints should have been removed from the engine and also from the view' s list of dependent constraints"

有没有人遇到过这个与自动布局相关的警告消息:Alldependentconstraintsshouldhavebeenremovedfromtheengineandalsofromtheview'slistofdependentconstraints目前,我们有一些footerView,里面有几个按钮,它们根据需要隐藏或显示。我们到处都使用完全自动布局。这是隐藏/显示此footerView的方法:-(void)hideFooterView:(BOOL)shouldHide{self.containerViewBottomConstraint.constant=shouldHide?0:

ios - Xcode 提示 Unused functions that used

我有一个由多个类导入的“MyConstants.h”文件。在那个文件里面我有这样的东西:staticBOOLisIndexValid(NSIntegerindex){return((index>=0)&&(index此函数被导入MyConstants.h的类广泛使用。即便如此,Xcode仍会提示未使用此功能和其他功能。为什么? 最佳答案 在头文件中定义一个static函数(或变量,就此而言)意味着导入该头文件的每个源文件都将获得自己的副本。这并不好,这是编译器所提示的(并非每个源文件都引用此函数)。改为staticinline:st

iphone - 如何修复 xcode 警告 "Expression result unused"

我正在使用我的应用程序进行注册过程,用户输入一个数字,我会根据我的数据库进行检查。总之长话短说,我将code传递到我的NSString*startURL有一个我无法摆脱的警告,它说“表达式结果未使用”你有没有遇到过这样的事情,如果有我该如何解决?-(void)startRegConnect:(NSString*)tempRegCode{//tempRegCode=S.checkString;NSLog(@"tempRegCodefromRegConnection=%@",tempRegCode);NSString*code=[[NSStringalloc]initWithString:

安卓和 iOS : How to handle dependencies when building an SDK

我目前正在开发可在Android和iOS平台上使用的SDK。对于Android,我们在Gradle文件中列出依赖项并使用Maven提供SDK(因此我们的依赖项列在.pom文件中)。对于iOS,我们使用cocoapods来处理依赖项。问题如下:*我们的SDK在版本X中使用依赖项*我们的一位客户可能使用相同的依赖项,但在版本Y*另一个客户端也可能在版本Z中使用完全相同的依赖项因此,这导致我们的SDK可能在我们的一个客户端(如果不是两个)上被破坏,因为我们确保它与依赖项X一起工作,而不是Y和Z。目前,遗留代码只是简单地导入导致这个问题的库的源代码并为其命名空间,这样它模拟我们不使用相同的库。

objective-c - Xcode 警告 : Unused Entity Issue: Unused Variable

我正在处理这个教程应用程序,代码给我这个警告:XcodeWARNING:UnusedEntityIssue:UnusedVariable执行这条语句时报错:intnewRowIndex=[self.checklist.itemscount];是什么原因造成的?我应该采取哪些步骤来解决这个问题? 最佳答案 变量newRowIndex已初始化但未在其他任何地方使用。 关于objective-c-Xcode警告:UnusedEntityIssue:UnusedVariable,我们在Stack