could not insert new action

Hi

With xCode 9, I can't add an action or an outlet by draging the line to script editor

Do you have some ideas to realize that. I tried a lot of things..

Thanks

Replies

WHere do you drag from ? From the object itself or from its hud window listing all connections ?

If drag from object, it is control-drag of course.


Does this happen in all cases or for some specific class ?


Did you check that the class declared in the IB for the View is the same as the class in code (where you want to declare IBOutlets).


Do also an option clean to clean Build Folder.

This just happened to me. What solved the problem was while in Assistant Editor, the view controller on the right was not the correct view controler (even though it was showing all the code of the view controller I was trying to drag to). At the top of the view controller side of the Assistant Editor I selected the correct view controller by clicking MANUAL and selecting the view controler.