Help us understand the problem. What is going on with this article?

Could not find any information for the class named HogeViewController

症状・エラーメッセージ

StoryBoard上からControllerViewにOutlet Connectionを貼ろうとすると以下のエラーメッセージが表示される。

Could not insert new outlet connection: Could not find any information for the class named HogeViewController

TL;DR

削除して最初からやり直したら解消した

環境

iOS
Xcode 10.3
Swift

試してダメだった対策

DerivedDataフォルダを削除

~/Library/Developer/Xcode/DerivedData

キャッシュ削除

~/Library/Caches/

defaultsコマンドでcom.apple.dt.XcodeIDEIndexEnableの値をリセット

MacBook-Pro:Xcode trpla226$ defaults delete com.apple.dt.Xcode IDEIndexDisable
MacBook-Pro:Xcode trpla226$ defaults write com.apple.dt.Xcode IDEIndexEnable 1

その他

  • Product > Clean Build Folder
  • XCode再起動
  • マシンの再起動

原因と思しきもの

HogeViewController.swiftを作成した際にプロジェクトのフォルダ直下に作成したが、これを他のViewController派生クラスをおいてあったViewControllerフォルダに移動したのがまずかったのかもしれない。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした