Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode 6 assistant editor Automatic results will not display

I can not drag anything to the code from the storyboard. Files were in assistant editor under automatic but now there gone how do i get them back other then deleting and recreating them? Opening them up under manual it will come up but Xcode can't find the referance when dragging to the code and i get the error when naming it.

like image 450
dscrown Avatar asked Oct 22 '14 16:10

dscrown


3 Answers

I don't know if anyone else is still having this issue, but I get it a few times a week on Xcode 6.1.1 and I usually do the following to fix it (once I have checked that there are no class name mismatches):

  • Clean build
  • Delete Derived Data (using Organiser)
  • Force Quit Xcode
  • Re-open and Build

I know this is crazy, but it continues to work for me o_O

like image 121
mdstroebel Avatar answered Oct 18 '22 03:10

mdstroebel


The most common cause is a mismatch between your class name and the name registered in the identity tab of the view controller. This will happen if you for example rename your class but don't update the classname in the storyboard.

To set/check the class name, open the storyboard and click on the leftmost icon in the titlebar of your UIViewController. Then open the identity inspector in the utility pane (right side) and double check the name given as the custom class.

like image 41
oflibaer Avatar answered Oct 18 '22 05:10

oflibaer


The issue is due to not completion of indexing - so there are few alternatives, that you can try for-

Way 01 : Check if indexing is showing in processes - then let it complete. Then, close the editor and reopen it

Way 02 : Just perform the clean action. It will start showing appropriate Viewcontrollers.

Way 03 : This is the most effective way - Just perform "Build" and then restart editor - it will surely going to work.

like image 2
Mehul Thakkar Avatar answered Oct 18 '22 05:10

Mehul Thakkar