This is the 23rd day of my participation in the August More Text Challenge.

preface

During iOS development, especially in the early days of iOS development, there will be a variety of errors. Some errors are caused by developers’ unfamiliarity or negligence, while others are irrational errors that can be resolved by restarting Xcode or restarting your computer.

So this blog post shares a common and classic error message, this error message is generally used when using OC visual programming, such as creating a new XIB file, and then dragging the control, when the control is associated with the operation, if the drag line “posture” is not correct, “Could not insert new outlet Connection :Counld not find any information for the class named XXX…” “, the cause of the error is not discussed, but the solution is described as follows.

Examples of error messages:

steps

1. Close Xcode, then open the Mac folder icon, the “Finder” option on the far left of the menu bar at the bottom of the Mac desktop.

2. Right click on the “Finder” icon to bring up a menu bar. Select “Go to Folder **…” from the menu bar. ** option, or use the Mac shortcut Shift+Command+G.

3, will open a path to the file input box, here you can enter to enter the file link, directly into the corresponding files, input “here ~ / Library/Developer/XCode/DerivedData”, then enter the corresponding file directory.

4, according to the file path into the corresponding directory, find the error project name of the folder, the folder naming rule is according toProject name **-** Randomly arranged in English letters“And then click delete folder directly after confirming no error.

5After deleting, open it againXcode, the project does not report errors, can be normal operationXIBDrag the line step.

The last

Could not insert new outlet connection… XIB drag control, although is to improve the efficiency of the operation, but in the drag line must pay attention to the details, otherwise it will cause unnecessary error, but increase the development time, especially for the primary developers, more should pay attention to, here is no longer described.

The above is all the content of this chapter. Welcome to follow the wechat public account of Sanzhan “Program Ape by Sanzhan” and the Sina Weibo account of Sanzhan “sanzhan 666”. Welcome to follow!