简体   繁体   English

Xcode 6 Bug:Interface Builder 文件中的未知类

[英]Xcode 6 Bug: Unknown class in Interface Builder file

I upgraded to Xcode 6 beta 4 and now my App continuously crashes with the message我升级到 Xcode 6 beta 4,现在我的应用程序不断崩溃并显示消息

Unknown class X in Interface Builder file. Interface Builder 文件中的未知类 X。

It crashes because supposedly Xcode can't find my custom classes that I have linked in my Storyboard but it shows that they are linked correctly in the Xcode interface.它崩溃是因为据说 Xcode 找不到我在 Storyboard 中链接的自定义类,但它表明它们在 Xcode 界面中正确链接。

I'm positive everything is linked correctly.我很肯定一切都正确链接。 My only other option may be to delete the entire storyboard file and start from scratch because it might be corrupted somehow.我唯一的其他选择可能是删除整个故事板文件并从头开始,因为它可能以某种方式损坏。

Edit: I would also like to add that I tried cleaning, reseting simulator, messing with build phases etc. None of that works.编辑:我还想补充一点,我尝试过清理、重置模拟器、搞乱构建阶段等。这些都不起作用。

I resolved this issue as I was typing the question.我在输入问题时解决了这个问题。 I figured I'd answer my question and leave it here for anyone else who may face this issue when using Xcode 6 beta 4.我想我会回答我的问题,并将其留给在使用 Xcode 6 beta 4 时可能遇到此问题的其他任何人。

To resolve this issue, you need to select each of your custom class objects in Storyboard (this includes any custom views, even the custom view controllers themselves).要解决此问题,您需要在 Storyboard 中选择每个自定义类对象(这包括任何自定义视图,甚至自定义视图控制器本身)。

Then with those objects selected, open the identity inspector and under "Custom Class" you should see the Module option.然后选择这些对象,打开身份检查器,在“自定义类”下,您应该会看到模块选项。 Finally:最后:

  • Click inside the Module text box, and press enter.在“模块”文本框内单击,然后按 Enter。
  • Or (update 2022) , check the "Inherit Module From Target" option.或者(2022 年更新) ,选中“从目标继承模块”选项。

That's it!而已! The current module for all of my custom objects must have been internally incorrectly set somehow in Xcode 6 beta 4. But there was no visual indication of this in the inspector.我所有自定义对象的当前模块必须在 Xcode 6 beta 4 中以某种方式在内部错误地设置。但是在检查器中没有视觉指示。

Note that if pressing enter inside the Module text box doesn't work, try selecting the arrow to the right and manually select your current module, then clear the text box and press enter.请注意,如果在 Module 文本框中按 enter 不起作用,请尝试选择右侧的箭头并手动选择当前模块,然后清除文本框并按 enter。 You can also try pressing enter inside the class text box (although this usually is to resolve a different issue).您也可以尝试在类文本框中按 Enter(尽管这通常是为了解决不同的问题)。

Here is an image to make things more clear:这是一张使事情更清楚的图像:在此处输入图像描述

Sometimes Xcode missed customModule="AppName" customModuleProvider="target"有时 Xcode 会错过customModule="AppName" customModuleProvider="target"

To fix it, open storyboard as source code and replace this line:要修复它,请将情节提要作为源代码打开并替换此行:

<viewController storyboardIdentifier="StoryboardId" id="SomeID" customClass="CustomClass"
sceneMemberID="viewController">

to this:对此:

<viewController storyboardIdentifier="StoryboardId" id="SomeID" customClass="CustomClass"
 customModule="AppName" customModuleProvider="target" sceneMemberID="viewController">

I had this problem after renaming a swift class.重命名 swift 类后我遇到了这个问题。 Solved it by using the @objc directive:通过使用@objc 指令解决了这个问题:

@objc(ForumTopicListViewController) class ForumTopicListViewController

Project with Multiple Targets具有多个目标的项目

In my case I am working on Project with multiple Targets and the issue was "inherit from Target" was unchecked.就我而言,我正在处理具有多个目标的项目,问题是“从目标继承”未选中。 Selecting "inherit from target" solved my problem选择“从目标继承”解决了我的问题

在此处输入图像描述

This worked for me..这对我有用..

Check your compiled source, whether that file(eg; ViewController.m) is added or not, in my case ViewController file was not added so it was giving me the error..检查您的编译源,是否添加了该文件(例如 ViewController.m),在我的情况下,未添加 ViewController 文件,因此它给了我错误..

在此处输入图像描述

This can happen in any Xcode above 6.0.这可能发生在任何高于 6.0 的 Xcode 中。 It happened to me after renaming some ViewController classes in Swift project (but I guess it will happen with Obj-C too).在 Swift 项目中重命名一些 ViewController 类后发生在我身上(但我猜它也会发生在 Obj-C 上)。 You just have to open the interface builder, go to Identity Inspector of ViewController that had its class renamed, select class and press Enter.您只需要打开界面构建器,转到已重命名其类的 ViewController 的 Identity Inspector,选择类并按 Enter。 That will reassign renamed class to selected ViewController and also reset Module Value which gets lost after renaming the class.这会将重命名的类重新分配给选定的 ViewController,并重置重命名类后丢失的模块值。

Update for Xcode 8.1 (probably 8.0 too): Xcode 8.1 的更新(也可能是 8.0):

Xcode 8.1 just crashes. Xcode 8.1 只是崩溃了。 Simply and annoyingly just crashes and doesn't print anything.简单而烦人的只是崩溃并且不打印任何内容。 I was chasing that phantom crash for an hour just to find out that it was this very same thing - unassigned class in IB.我追了一个小时的幻觉崩溃只是为了发现它是同样的事情 - IB中未分配的课程。 If you're getting some phantom crashes, double check IB for unassigned classes first.如果您遇到一些幻像崩溃,请先仔细检查 IB 是否有未分配的课程。

Enabling Inherit Module From Target took the correct target module.启用Inherit Module From Target采用了正确的目标模块。 That solved the issue.这解决了这个问题。

在此处输入图像描述

Sometimes the controller you are providing loses its target membership from the current application.有时,您提供的控制器会从当前应用程序中失去其目标成员资格。 In that case, pressing enter on the "Module" field will do nothing.在这种情况下,在“模块”字段上按 Enter 键将无济于事。 Go to the controller and make sure that it has target membership set to the current app.转到控制器并确保它已将目标成员资格设置为当前应用程序。

My answer: set custom Module equal to the custom Pod name (in my example - custom class name) like on the screenshot attached我的回答:将自定义模块设置为等于自定义 Pod 名称(在我的示例中 - 自定义类名),如附加的屏幕截图所示

This solution is for a specific case : for custom views classes from Pod (or Carthage ) framework.此解决方案适用于特定情况:来自Pod (或Carthage )框架的自定义视图类。

Infrastructure: XCode8, Swift3基础设施:XCode8、Swift3

在此处输入图像描述

Selecting the proper Module for my Custom Class I solved this problem .为我的Custom Class选择合适的Module我解决了这个问题。

Here it is :这里是 :

在此处输入图像描述

I fixed it by doing exactly the opposite of what ChikabuZ suggested (thanks for pointing it out, though).我通过与 ChikabuZ 建议的完全相反的方式修复它(不过,感谢您指出)。 In the storyboard file, find this:在情节提要文件中,找到以下内容:

<viewController storyboardIdentifier="StoryboardId" id="SomeID" customClass="CustomClass" customModule="AppName" customModuleProvider="target" sceneMemberID="viewController">

and replace it with this:并将其替换为:

<viewController storyboardIdentifier="StoryboardId" id="SomeID" customClass="CustomClass" sceneMemberID="viewController">

I can't believe how many hours I'm losing getting around bugs in the Swift compiler and Xcode 6我无法相信我在解决 Swift 编译器和 Xcode 6 中的错误时浪费了多少时间

I faced this problem in Xcode 8 , to resolve it I had to modify storyboard in the text editor.我在Xcode 8中遇到了这个问题,要解决它,我必须在文本编辑器中修改故事板。

In general, look up for your control and remove customModule and customModuleProvider from control entity.通常,查找您的控件并从控件实体中删除customModulecustomModuleProvider

Did a trick for me.为我做了一个伎俩。

I had the same problem.我有同样的问题。

In my case, Xcode wasn't adding my custom class to: Target > Build Phase > Compile Sources.就我而言,Xcode 没有将我的自定义类添加到:Target > Build Phase > Compile Sources。

So I recommend you to verify if your CustomClass.m is there.因此,我建议您验证您的 CustomClass.m 是否存在。

在此处输入图像描述

I hope this helps you.我希望这可以帮助你。

You need to check the box "Inherit Module From Target" Checkbox您需要选中“从目标继承模块”复选框

在此处输入图像描述

I faced this issue in Xcode 6.1 when I removed Main.storyboard , the LaunchScreen.xib file and the default ViewController classes from my project.当我从我的项目中删除Main.storyboardLaunchScreen.xib文件和默认的ViewController类时,我在 Xcode 6.1 中遇到了这个问题。

I fixed it by deleting the Launch Screen File and Main Interface entries from Info.plist我通过从Info.plist删除Launch Screen FileMain Interface条目来修复它

检查您的班级是否有正确的Target Membership

I googled everywhere for this.我到处搜索这个。 None of the answers work for me until i met 1 dude who asked me to move my project folder to desktop.直到我遇到 1 个要求我将项目文件夹移动到桌面的家伙之前,没有一个答案对我有用。 It just worked automatically.它只是自动工作。 Apparently if you have you project folder to deep in many folders, XCODE actually breaks.显然,如果您将项目文件夹深入到许多文件夹中,XCODE 实际上会中断。

These steps work for me.这些步骤对我有用。

1) Clear Derived Data. 1) 清除派生数据。
2) Remove .h and .m files 2) 删除 .h 和 .m 文件
3) Create .h and .m files Again 3) 再次创建 .h 和 .m 文件

我通过将我的故事板文件作为源代码打开并使用 command-F 搜索我的未知类并删除与之关联的自定义类来解决这个问题。

What @gfrs said is correct, you need to set the Module. @gfrs 说的是正确的,您需要设置模块。 However I once ran into an issue that my class wasn't listed in the Class dropdown.但是,我曾经遇到过一个问题,即我的班级没有在Class下拉列表中列出。 Eventually I removed the swift file, re-started Xcode and re-created the file.最终我删除了 swift 文件,重新启动了 Xcode 并重新创建了文件。 Finally the class was listed and could be used in Storyboard.最后,该类被列出并且可以在 Storyboard 中使用。

Also have a look at this answer , which looks like to solve the 'real' problem I encountered.也看看这个答案,它看起来像是解决了我遇到的“真正的”问题。

I solved this problem by typing in the Module name (unfortunately the drop list will show nothing...) in the Custom Class of the identity inspector for all the View controller and views.我通过在所有视图控制器和视图的身份检查器的自定义类中输入模块名称(不幸的是,下拉列表将不显示任何内容...)解决了这个问题。

You may also need to indicate the target provider.您可能还需要指明目标提供者。 To achieve this objective you can open the storyboard in sourcecode mode and add the "customModuleProvider" attribute in both ViewController and View angle brackets.为了实现这个目标,您可以在源代码模式下打开情节提要,并在 ViewController 和 View 尖括号中添加“customModuleProvider”属性。

My solution (Xcode 8.1 Swift 3.0):我的解决方案(Xcode 8.1 Swift 3.0):

Unknown class xxx in Interface Builder file. Interface Builder 文件中的未知类xxx

Open StoryBoard as Source Code and search for xxx .打开 StoryBoard 作为源代码并搜索xxx Remove attribute which contains value xxx .删除包含值xxx的属性。 Build and Run.构建并运行。

In my case, I added a flag -ObjC to Other Linker Flags in project settings to make it work.就我而言,我在项目设置中的Other Linker Flags中添加了一个标志-ObjC以使其工作。 Also I tried with -all_load flag and it worked well too.我也尝试使用-all_load标志,它也运行良好。

在此处输入图像描述

In my case, the class referenced in the Storyboard / xib did not have Target Membership set.就我而言,Storyboard / xib 中引用的没有设置目标成员资格

To fix, give that class's .h and .m files the same Target Membership as your other classes.要解决此问题,请为该类的.h.m文件提供与其他类相同的目标成员资格。

未设置目标成员资格。

我的解决方案是从自定义类定义中删除 @objc。

I had the same problem with Xcode Version 6.1 (6A1052d).我对 Xcode 6.1 版(6A1052d)也有同样的问题。 I think the problem appears if you renamed your App / Xcode Project.我认为如果您重命名了 App / Xcode 项目,就会出现问题。

My solution was to add the module name in the interface builder manually.我的解决方案是在界面生成器中手动添加模块名称。

I faced the problem when I ported the storyboard from Swift project to Objective-c project, noticing vvkuznetsov's answer , it turned out the two project using same identifier.当我将故事板从 Swift 项目移植到 Objective-c 项目时,我遇到了这个问题,注意到vvkuznetsov 的回答,结果证明这两个项目使用相同的标识符。 I "Product -> Clean" and tap Enter key on the Module and Class text field.我“产品 -> 清洁”并点击模块和类文本字段上的 Enter 键。 the issue went away.问题消失了。

I fixed this along the lines of what Laura suggested but I didn't need to recreate the files.我按照劳拉的建议解决了这个问题,但我不需要重新创建文件。

Using XCode 4, in the Project Navigator, select the .m file that contains the class that it is complaining about使用 XCode 4,在 Project Navigator 中,选择包含它所抱怨的类的 .m 文件

Go to View->Utilities->Show File Inspector (this will show the File Inspector to the right, with that .m-file info)转到查看->实用程序->显示文件检查器(这将在右侧显示文件检查器,带有 .m 文件信息)

Open the Target Membership section and make sure that your target is selected for this .m-file打开 Target Membership 部分并确保为此 .m 文件选择了您的目标

When I added my .m file to my project, it didn't add it to my default target for some reason and that caused me to get the error you mentioned.当我将我的 .m 文件添加到我的项目时,由于某种原因它没有将它添加到我的默认目标中,这导致我收到你提到的错误。

My issue was user error.我的问题是用户错误。 I had a generic UIView in my storyboard and in the Custom Class section of the Identity Inspector I had accidentally changed the name from UIView to gibberish.我的故事板和身份检查器的自定义类部分中有一个通用 UIView,我不小心将名称从 UIView 更改为乱码。

All it took to fix was to change it back to UIView.只需将其改回 UIView 即可。

What only worked for me is actually adding the module name to the xib file...只对我有用的实际上是将模块名称添加到 xib 文件中......

Sooo, the xib files look like this: Sooo,xib 文件如下所示:

mymodule.MyViewController.xib (Module being the name of the proyect, usually)

HORRIBLE solution in my opinion, but that is supposedly how Apple wants us to do it now.在我看来,这是一个可怕的解决方案,但这应该是苹果希望我们现在这样做的方式。

This question shows 3 possible work arounds back in beta 4 ... apparently Apple has not been very helpful in this situation according to some because they call it "Working as intended." 这个问题在 beta 4 中显示了 3 种可能的解决方法……显然,根据某些人的说法,Apple 在这种情况下并没有太大帮助,因为他们称之为“按预期工作”。

I had this problem after I added a new target, then created a new class using the 'New File' dialog but accidentally failed to check the new target as well as the original target in the creation dialog, so the object was only added to my original target.添加新目标后我遇到了这个问题,然后使用“新文件”对话框创建了一个新类,但意外未能在创建对话框中检查新目标以及原始目标,因此该对象仅添加到我的原来的目标。 The solution was to delete the source files (remove reference only) then add them back using 'Add Files', this time checking both targets.解决方案是删除源文件(仅删除参考),然后使用“添加文件”将它们添加回来,这次检查两个目标。

The solution was different for me.解决方案对我来说是不同的。 You need to add the .m of the class to the build phase compiled sources of the target.您需要将类的 .m 添加到目标的构建阶段编译源中。

Hope this helps!希望这可以帮助!

Select your unknown class file, open file inspector tab, check your target name in Target Membership .选择您的未知类文件,打开文件检查器选项卡,在Target Membership中检查您的目标名称。 There you go.你去吧。

发生在我身上是因为我的项目被称为“ä,ü,ö”

当我从基于视图的新项目中删除已包含的 ViewController.h 和 ViewController.m 文件并从情节提要中删除与此类相关的场景时,我在 Xcode 6 上遇到了这样的问题,Xcode 将这些文件兑现到派生数据文件夹中,因此,如果您尝试转到 Window -> Projects -> your_project 并删除派生数据,一切都会好起来的。

不要在项目名称中使用空格,否则自定义类将找不到您自己的类。

I faced a problem when I created a project with the same name that already existed in my projects directory (though it was deleted some time ago).当我创建一个同名的项目时,我遇到了一个问题,该项目已经存在于我的项目目录中(尽管它在前一段时间被删除了)。 I wrote my solution there https://stackoverflow.com/a/27763697/1654692我在那里写了我的解决方案https://stackoverflow.com/a/27763697/1654692

It happened to me because my class was marked with @objc and in sotryboard it couldn't find the module.它发生在我身上,因为我的班级被标记为@objc ,并且在 sotryboard 中找不到该模块。 Removing @objc fixed the problem删除@objc解决了问题

I had the same problem, but not the same fix.我有同样的问题,但不一样的修复。

The project folder was kinda corrupted so i had to copy my project folder to another folder, for example your desktop and after that open the project.项目文件夹有点损坏,所以我不得不将我的项目文件夹复制到另一个文件夹,例如你的桌面,然后打开项目。

When it opened go to your interface builder project and you will see he recognise your script, Then you click indeed on the name of your script and press enter, u will see the module input will fill it self.当它打开时,转到您的界面构建器项目,您将看到他识别您的脚本,然后您确实单击脚本的名称并按 Enter,您将看到模块输入将自行填充。

And it will work like a charm!它会像魅力一样起作用! :D :D

This worked for me when nothing else did.没有其他方法时,这对我有用。 From the project directory in terminal:从终端的项目目录中:

[~/Developer/MyProject] grep -rn ViewController * | grep -i xib 

Open the matched files as source code in Xcode and change any instances of ViewController to what you actually need.在 Xcode 中将匹配的文件作为源代码打开,并将 ViewController 的任何实例更改为您实际需要的。 In my case the file I needed to open as source was Main.storyboard and I changed instances of ViewController to DetailViewController.在我的例子中,我需要作为源代码打开的文件是 Main.storyboard,我将 ViewController 的实例更改为 DetailViewController。

I deleted two files from Xcode and main.storyboard which is what I believe caused this issue for me to begin with.我从 Xcode 和 main.storyboard 中删除了两个文件,我认为这是我一开始就导致这个问题的原因。

In mij case the ViewController.h/m where in a lib.在 mij 情况下,ViewController.h/m 在 lib 中。 The projects still builds but since Xcode 6.3 the above error was shown at run-time.项目仍在构建,但从 Xcode 6.3 开始,上述错误在运行时显示。 Moving both files back into the project solved the issue.将这两个文件移回项目解决了这个问题。

I was playing with Spring class.我在玩春季课。 And this error happend to me because i used folder as reference when moving whole folder class to project instead of creating groups.这个错误发生在我身上,因为我在将整个文件夹类移动到项目而不是创建组时使用文件夹作为参考。 So this was my solution, dont use folder as reference but create groups.所以这是我的解决方案,不要使用文件夹作为参考,而是创建组。

in my case , i setup app as universal app, so xcode creates two storyboards.but i was only using(designed) only iPhone storyboard.就我而言,我将应用程序设置为通用应用程序,因此 xcode 创建了两个故事板。但我只使用(设计)了 iPhone 故事板。 and trying to run app in iPad.for resolve problem just need to make app as only for iPhone and works great.并尝试在 iPad 中运行应用程序。解决问题只需将应用程序制作为仅适用于 iPhone 并且效果很好。

I had the same problem with Xcode 6.3 when I add files to "myapp".当我将文件添加到“myapp”时,我在 Xcode 6.3 中遇到了同样的问题。 That's because I choose "create folder reference" instead of "create groups".I delete these files and add them again with the "create groups" option.And the problem fixed.那是因为我选择了“创建文件夹引用”而不是“创建组”。我删除了这些文件并使用“创建组”选项再次添加它们。问题已解决。

For me, I'm using Xcode7 + Swift2对我来说,我使用的是 Xcode7 + Swift2

Solved this problem by checking my code, I have this line in my viewController:通过检查我的代码解决了这个问题,我的视图控制器中有这一行:

 self?.navigationController?.pushViewController(vc, animated: true)

Then I realized that I haven't get navigationController connected to the detail page.然后我意识到我还没有将 navigationController 连接到详细信息页面。 So if you're pushing a new ViewController with customized ID, better to check that.因此,如果您要推送具有自定义 ID 的新 ViewController,最好检查一下。

My issue was related to a podfile framework (specifically the 'BWWalkthrough').我的问题与 podfile 框架(特别是“BWWalkthrough”)有关。 None of the above solutions worked for me, and no matter how I tried I couldnt get the module to point to my app.上述解决方案都不适合我,无论我如何尝试,我都无法让模块指向我的应用程序。

What ended up working for me was removing the library as a podfile and add it directly to my project as a static library.最终对我有用的是将库作为 podfile 删除,并将其作为静态库直接添加到我的项目中。 Everything was hunky-dory for me after that.在那之后,一切对我来说都是笨拙的。 Not entirely sure what was 'broken' with the pod implementation of the class.不完全确定类的 pod 实现“破坏”了什么。

In my case the problem was due to having our main storyboard set as the Launch Screen, and I'd get a console error (no crash) at app start for every custom view controller referenced in the storyboard.在我的情况下,问题是由于将我们的主故事板设置为启动屏幕,并且对于故事板中引用的每个自定义视图控制器,我会在应用程序启动时收到控制台错误(没有崩溃)。

We'd covered from XIBs and launch images to storyboards and I hadn't yet gotten around to getting the launch screen working again.我们已经涵盖了 XIB 和启动图像到故事板,但我还没有开始让启动屏幕再次工作。 When I finally got around to creating a bare bones launch storyboard with no custom view controllers (which aren't allowed) these console errors stopped appearing.当我终于开始创建一个没有自定义视图控制器(这是不允许的)的基本启动故事板时,这些控制台错误停止出现。

对我来说,问题是我在情节提要中引用了一个自定义类(与 .h 文件匹配),但 .m 文件中没有 @implementation 命令。

Swift 3 solution.斯威夫特 3解决方案。

All these did NOT work.所有这些都不起作用。

  1. Clicking on Module on right pane did NOT work.单击右窗格上的Module不起作用。
  2. Adding @obj did NOT work.添加@obj 不起作用。
  3. Restarting did NOT work.重新启动不起作用。
  4. Moving to desktop as xcode breaks for longer path is NOT working.当 xcode 中断更长的路径时移动到桌面不起作用。 ... ...

This worked finally.这终于奏效了。

Just create new directory and create a new project inside that.只需创建新目录并在其中创建一个新项目 Add the files except Main.sotryboard.添加除 Main.sotryboard 之外的文件。

Now copy the view controllers from previous project and paste it into new Main.storyboard.现在从以前的项目中复制视图控制器并将其粘贴到新的 Main.storyboard 中。

Voila !瞧! This works.这行得通。

I'm a PyObjC user and I had my NSView subclass in its own file.我是PyObjC用户,我的NSView子类在它自己的文件中。 What solved this problem for me was to move the NSView subclass from its own file into my AppController.py file.为我解决这个问题的方法是将NSView子类从它自己的文件移动到我的AppController.py文件中。 This is the file that has the application controller in it.这是包含应用程序控制器的文件。

This really wierd when XCode 10 stopped to "refine debugs".XCode 10停止“优化调试”时,这真的很奇怪。
In my case, i setted UITableViewDelegate and UITableViewDataSource with Storyboard and forget to implemente those required methods.在我的例子中,我用 Storyboard 设置了 UITableViewDelegate 和 UITableViewDataSource 并且忘记了实现那些需要的方法。
I just wanted to test the view first, before implement those methods, then crash!我只是想先测试视图,然后再实现这些方法,然后崩溃! XCode 9 , will warning about those methods, but XCode 10 , really maked my code slow, not on this one, others i been thru this "error doubt". XCode 9会对这些方法发出警告,但是XCode 10确实让我的代码变慢了,而不是在这个上,其他我一直在经历这个“错误怀疑”。
Hope this help someone.希望这对某人有所帮助。
Thanks谢谢

For me i've tried all the solutions in this question didn't work , i finally made it by .对我来说,我已经尝试了这个问题中的所有解决方案都不起作用,我终于成功了。

copy the pod .h .m files into my project and imported the .h into my project c header.将 pod .h .m 文件复制到我的项目中,并将 .h 导入到我的项目 c 标头中。

then i went back to storyboard the class was UICountingLabel i removed it and hit enter ( empty no class ) , then i added it again and hit enter, worked successfully .然后我回到情节提要,该类是UICountingLabel我将其删除并按 Enter 键(空无类),然后我再次添加它并按 Enter 键,成功运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM