Xcode 9.1 beta 2 (9B46): Autocomplete broken, no source code syntax error annotations, and no edit all in scope

I'm working with an existing Xcode workspace from Xcode 9 on 9.1 beta 2. My minimum target is iOS 9.0 for this project. This is in Swift and Objective-C source files. These problems all seem related to code parsing/build image processing.


Here's each problem I've noticed:

1. If I try to use auto complete on a property in code, such as self.searchController, I don't get any autocompletions on typing the period in self. or at the end of "self.searchController.". The autocomplete keyboard shortcut doesn't help either. The tooltip says "No Completions," even though the code builds with a valid property after self.searchController, such as self.searchController.searchResultsUpdater.


2. If I type "self." it doesn't show me the red syntax error in the gutter on the editor window. If I build, I get the expected build error.


3. I no longer get the edit all-in-scope functionality. There used to be a dropdown arrow that no longer appears and the button on the touchbar for the same doesn't do anything.


Has anyone else experienced this? I've tried these steps to no avail:


1. Delete build folder under my project

2. Delete derived data for xcode under ~/Library/Developer/Xcode

3. Rebuild

Answered by steve_reinert in 271507022

I seem to have solved my problem. At some point, the Xcode Preferences | Locations | Build Locations was set to Custom: Relative to Workspace. I changed this to Unique, which puts it under derived data. Rebuilding after that fixed all three issues.

Accepted Answer

I seem to have solved my problem. At some point, the Xcode Preferences | Locations | Build Locations was set to Custom: Relative to Workspace. I changed this to Unique, which puts it under derived data. Rebuilding after that fixed all three issues.

Xcode 9.1 beta 2 (9B46): Autocomplete broken, no source code syntax error annotations, and no edit all in scope
 
 
Q