error creating outlet "could not find information for class"

When I try to create an outlet, I get a message that says, "Could not insert new outlet connection: Could not find any information for the eclass named ...". What should I check?

Accepted Reply

I fixed it by copying and pasting the contents of the swift file into another swift file and using the new file instead.

Replies

I would first check that the name of the class you declared for the object is correct, including uppercases.


And perform a clean build folder (option clean).


Tell if that works.

That didn't work.

You could try to declare the IBOutlet in the code and then connect from the code to the IB view.

I did it several times when I could not connect from IB to code.

I fixed it by copying and pasting the contents of the swift file into another swift file and using the new file instead.

In fact that must have caused a reindex. And solved the problem.


But the trick I mentioned may be a faster way to solve, if this occurs again in the future.