已删除的类丢弃错误消息未知>:0:错误:没有此类文件或目录: [英] Deleted class drops error message unknown>:0: error: no such file or directory:
问题描述
所以我和一些朋友在一个bitbucket项目上工作,并且已经意识到bitbucket有时不会同步所有文件。但是这里发生了什么:
So me and some friends working on a bitbucket project and already realized that bitbucket sometimes doesn't sync all the files. But here is what happened:
我继续工作并创建了一个类,我基本上复制了一个旧的View Controller(称为 WelcomescreenViewController.swift
- > CreateAccountViewController.swift
)并在主故事板中进行了一些调整。在这里,我删除了新的所有旧插座,然后为ViewController创建了一个自己的类,并在主故事板中将其连接起来。
I continued working and created an class, I basically copied an old View Controller (called WelcomescreenViewController.swift
-> CreateAccountViewController.swift
) and made some adjustments in the main storyboard. Here I deleted all the old outlets in the new one and then made an own class for it as ViewController and connected it with it in the main storyboard.
现在发生了一些问题,我还原了所有内容并再次删除了这两件事。而且基本上现在Xcode仍然认为应该有类。它总是丢弃消息:
What now happened is that there were some problems and I reverted everything and deleted both things again. And basically now Xcode still kind of thinks that there should be the class. It always drops the message:
我还从目录中截取了屏幕截图现在使用我的文件:
I also made a screenshot from the directory with my files as it is now:
我试图创建课程再次,让Xcode很高兴,但它没有帮助。是文件链接在哪里或我该怎么做,教Xcode嘿一切都很好,不要介意旧文件 CreateAccountViewController.swift
?
I tried to create the class again, so that Xcode is happy but it doesn't help. Is the file somewhere linked or what shall I do, to teach Xcode hey everything is fine, don't mind about the old file CreateAccountViewController.swift
?
推荐答案
确保在目标设置中构建阶段>编译源,确保您的文件未列在其中:
Make sure in your target settings, under Build Phases > Compile Sources that your file isn't listed there:
另外,只是检查一下还没有添加复制捆绑资源。
Also, just check it somehow hasn't been added to Copy Bundle Resources.
这篇关于已删除的类丢弃错误消息未知>:0:错误:没有此类文件或目录:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!