• Register
search
Log In
0 votes
284 views

Problem :

I got an error on Xcode saying that there was no information about the view controller as follows:

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

Why am I getting this error?

7.5k points

1 Answer

0 votes

Solution :

Please find below the steps that can fix your issue:

·    Clean your affected Project  by doing Product > Clean

·    Please Manually paste following code

·    @IBOutlet weak var viewName: UIView!

     // or

    @IBAction func viewTapped(_ sender: Any) { }

     control drag to it also change type as needed.

·    Completely close your Xcode and restart your project.

·    To Delete the Derived Data folder please Go to Xcode > Preferences > Locations and click the visible gray arrow by the Derived Data and after that delete your project folder.

·    Finally click delete on the class and remove reference Please do not Move it to Trash and add it back again.

·    This will solve your issue.

 

OR

Here are the alternate steps which solved the issue for me:

1.      Please Remove Class name reference from View(e.g. storyboard/xib) and click on save;

2.      After that Add Class name again and click on save;

3.      Finally just do Clean and Build;

Done ! this will solve your issue.

36.1k points

Related questions

0 votes
1 answer 319 views
319 views
Problem : Facing following Swift issue must register a nib or a class for the identifier or connect a prototype cell in a storyboard
asked Nov 15, 2019 peterlaw 6.9k points
0 votes
1 answer 36 views
36 views
Problem : I have very simple program HelloWorld is running on iOS. The same program has been running fine for a long time. But recently I noticed that I get the below listed BoringSSL error when my program runs on my ... boringssl_session_errorlog: line 2871 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert
asked Dec 4, 2019 alecxe 7.5k points
0 votes
1 answer 29 views
29 views
Problem : I want to run the NVCC to compile my CUDA program on my Mac. But when I try to run the NVCC, I am facing below error message: "nvcc fatal : The version ('70300') of the host compiler ('Apple clang') is not supported". I tried updating the XCode version to 7.3, and the Mac version to 10.11.4. But I am facing the same error. How can I revert my Apple Clang Version?
asked Nov 30, 2019 alecxe 7.5k points
0 votes
2 answers 56 views
56 views
Problem : While trying to compile my C program I encountered following error agreeing to the xcode/ios license requires admin privileges, please re-run as root via sudo.
asked Nov 16, 2019 peterlaw 6.9k points
1 vote
1 answer 31 views
31 views
Problem : I am very new to Swift. Now I have started learning Swift. Recently I have written very simple class as shown below for your reference: public class SwiftUser {     let userid: Int     let userfirstName: String     let userlastName: String     ... Return from initializer without initializing all stored properties . Now I am very confused. Please help me in resolving above Swift error.
asked May 12 Martin K 6.6k points