Could Not Insert New Outlet Connection
Im getting following error when I'm trying to connect outlet from my search bar. How can I solve that? I want to insert a new outlet for a stack view, but every time I click connedt, this error appears: "Could not insert new outlet connection: Could not find a classs named ViewController in the language Swift".
Learn how to fix the Could Not Insert New Outlet Connection error in Xcode with our step-by-step guide. Simplify your coding process today! When this issue occurs, you cannot use the assistant editor to automatically pull up the file assigned to a view in the Storyboard.
The assistant appears empty regardless of what you click on, and sometimes opens on the bottom of the screen instead of to the right? Could not insert new outlet connection [Solution] How To 1.74K subscribers Subscribe There are multiple people using Xcode 9.3 with Xamarin.Mac who are unable to add outlets to the Xcode project when editing a storyboard.
It appears inconsistent, as it failed for me yesterday but works today? Could not insert new outlet connection: Could not find any information for the class named "xxx". The "xxx" is the class name in your object code file.
If there is no error, this is entirely the reason for Xcode. Below, introduce a simple and convenient method: 1: Delete and re-add the .h and .m files Or if none of the above works, type out the name of the outlet into the file first @IBOutlet weak var headerHeightConstraint: NSLayoutConstraint! and then click and drag from the outlet in the nib to the variable you just programmatically created.
Click the class file, open File Inspector->Target Membership in the right sidebar, check whether the corresponding target is checked, if not, just check it. (This method does not apply to my situation, because mine is ticked, so I move to solution two)