Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No Assistant Results

Tags:

xcode

ios

xcode7

I am having an issue where the code associated with some of my View Controllers is not showing up in the Assistant Editor window to the right of the Storyboard. It says "No Assistant Results" where the swift code should be.

Things I have tried (There are many things):

  • Cleaning project
  • Deleting DerivedData
  • Creating new, identical View Controllers to see if the issue was just in those particular views.(the same issue occurred)
  • Deleting and Reinstalling Xcode
  • Restarting my Computer.

NOTE: I also am getting a warning at the top of the editor: Internal Error has occurred, source Editor functionality is limited.

enter image description here

like image 869
Ryan Cocuzzo Avatar asked Jul 11 '16 19:07

Ryan Cocuzzo


People also ask

How do I show the assistant editor in Xcode 11?

You can open the editor from the Xcode menu Editor -> Assisant . Nowadays, the Assistant Editor is more seen as just a second editor next to the primary editor.

How do I connect storyboard to ViewController?

Create a new IBOutlet called shakeButton for your storyboard button in your ViewController. swift file. Select the shake button in Interface Builder. Then hold down the control button ( ⌃ ) and click-drag from the storyboard button into your ViewController.

How do I change the Assistant view in Xcode?

To change how the Assistant Editor displays in the Xcode interface, choose View, Assistant Editor, as shown in Figure 6.19. From there, you can choose how the Assistant Editor is added to the display and what will happen if multiple Assistant Editors are in use.


2 Answers

Ok, I've had this problem before. I couldn't remember how I solved this so I searched on Google and found this question. But this time, nothing helped me. These are the things I did. I believe the last one solved this.

  1. Clear Derived Data. Go to Terminal and enter this: rm -rf ~/Library/Developer/Xcode/DerivedData
  2. Quit the whole Xcode.
  3. Close all tabs of Xcode and make sure to view some class files instead of Interface builder and go try again viewing assistant results.
  4. Remove the assigned class to the View Controller nib you think causes the problem, then assign the class again. Boom! Solved!
like image 184
Glenn Posadas Avatar answered Oct 18 '22 20:10

Glenn Posadas


This method worked for me: (Xcode 10.2)

1- Select the broken ViewController on the StoryBoard

2- In Identity Inspector, change the item in Class to another class (any class)

3- Change the Class back to related class

4- Save and close the project

5- Reopen the project

like image 35
Arash HF Avatar answered Oct 18 '22 18:10

Arash HF