jjzjj

undeclared

全部标签

ios - Swift 编译器错误 : use of undeclared type with framework

我正在导入创建LCConnection类的自定义框架LCCommLibrary的较新版本,我非常困惑为什么在尝试多种操作后会构建但不会存档。确保添加了目标(4个应用,1个测试)清理并重新启动项目这确实会构建并运行到我的iOS设备,但没有一个目标会存档。 最佳答案 Archive通常使用Release构建配置,而在设备上构建/运行使用Debug构建配置,这提示您那里有问题。我会说在你的情况下你可以进入目标的build设置,然后查看OtherLinkerFlags、RunpathSearchPaths和LibrarySearchPath

ios - Swift 编译器错误 : use of undeclared type with framework

我正在导入创建LCConnection类的自定义框架LCCommLibrary的较新版本,我非常困惑为什么在尝试多种操作后会构建但不会存档。确保添加了目标(4个应用,1个测试)清理并重新启动项目这确实会构建并运行到我的iOS设备,但没有一个目标会存档。 最佳答案 Archive通常使用Release构建配置,而在设备上构建/运行使用Debug构建配置,这提示您那里有问题。我会说在你的情况下你可以进入目标的build设置,然后查看OtherLinkerFlags、RunpathSearchPaths和LibrarySearchPath

ios - 在 Swift 中导入 Swift 框架 : "Use of undeclared type ' MyCustomView'"

我有一个Swift项目,我在其中添加了一个带有自定义子类UIView的框架目标。所以我可以在Xcode6的InterfaceBuilder中使用新的实时View。但是当我尝试添加@IBOutlet时在我的UIViewController我的项目中的子类出现“使用未声明的类型‘MyCustomView’”错误,我无法构建我的项目。这是来自UIViewController子类的代码:importUIKitimportMyCustomFrameworkclassMyViewController:UIViewController{@IBOutletvarmyCustomView:MyCusto

ios - 在 Swift 中导入 Swift 框架 : "Use of undeclared type ' MyCustomView'"

我有一个Swift项目,我在其中添加了一个带有自定义子类UIView的框架目标。所以我可以在Xcode6的InterfaceBuilder中使用新的实时View。但是当我尝试添加@IBOutlet时在我的UIViewController我的项目中的子类出现“使用未声明的类型‘MyCustomView’”错误,我无法构建我的项目。这是来自UIViewController子类的代码:importUIKitimportMyCustomFrameworkclassMyViewController:UIViewController{@IBOutletvarmyCustomView:MyCusto

xcode - Swift 中的 "Use of undeclared type",即使类型是内部的,并且存在于同一模块中

我的模块中有一个类型:importCocoaclassColoredDotView:NSView{...}它被用在许多不同的类中,没有问题:classEditSubjectPopoverController:NSObject{@IBOutletinternalvarsubjectColorDotView:ColoredDotView!...}但由于某些原因,当我在一个特定类中使用它时,我在类型上出现编译错误:classEditTaskPopoverController:NSObject{@IBOutletinternalvarlowPriorityDotView:ColoredDotV

xcode - Swift 中的 "Use of undeclared type",即使类型是内部的,并且存在于同一模块中

我的模块中有一个类型:importCocoaclassColoredDotView:NSView{...}它被用在许多不同的类中,没有问题:classEditSubjectPopoverController:NSObject{@IBOutletinternalvarsubjectColorDotView:ColoredDotView!...}但由于某些原因,当我在一个特定类中使用它时,我在类型上出现编译错误:classEditTaskPopoverController:NSObject{@IBOutletinternalvarlowPriorityDotView:ColoredDotV

error: ‘theachar‘ undeclared (first use in this function); did you mean ‘theacher‘?

错题本之未定义在c语言编程当中遇到error:‘theachar’undeclared(firstuseinthisfunction);didyoumean‘theacher’?问题看如下代码:inttheacher;teacher=getStudentScore(pos,student);这里可以看到,上面定义了一个theacher变量,下面却用了一个teacher未定义的一个变量,这明显是错误的,但大型程序当中密密麻麻的很容易遗漏此问题,所已为了演示可以假装没看出来一般报错最好方法,上有道翻译查找(程序员之宝典)说“teachar未声明”,这已经很明显了在结合报错的行号(23)可以知道,2

Unity Shader报错:undeclared identifier ‘_LightColor0‘ 解决方案

Unity2021.3.5f1c1中,shader报错:Shadererrorin'Custom/test':undeclaredidentifier'_LightColor0'atline37(ond3d11)已经给Pass加上了ForwardBase的tag仍然报错解决方案:在Pass块中加上#include"UnityLightingCommon.cginc"

c++ - 获取错误 'char16_t and char32_t undeclared'

我正在Linux上用C++开发一个程序。gcc版本是4.5.120100924。我想在我的程序中使用std::atomic_int。我包含了如下的原子header:include当我编译程序时出现以下错误:Infileincludedfrom/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../include/c++/4.5.1/bits/atomic_base.h:87:0,from/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../include/c++/4.5.1/atomic:41

c++ - 获取错误 'char16_t and char32_t undeclared'

我正在Linux上用C++开发一个程序。gcc版本是4.5.120100924。我想在我的程序中使用std::atomic_int。我包含了如下的原子header:include当我编译程序时出现以下错误:Infileincludedfrom/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../include/c++/4.5.1/bits/atomic_base.h:87:0,from/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../include/c++/4.5.1/atomic:41