Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What is going on with this article?
@a-yonenaga

Could not find any information for the class named HogeViewController

More than 1 year has passed since last update.

症状・エラーメッセージ

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
Help us understand the problem. What is going on with this article?
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.
Sign Up
If you already have a Qiita account Login
1
Help us understand the problem. What is going on with this article?