LoginSignup
1
1

More than 3 years have passed since last update.

Could not find any information for the class named HogeViewController

Last updated at Posted at 2019-10-07

症状・エラーメッセージ

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フォルダに移動したのがまずかったのかもしれない。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1