Missing code completion or syntax highlighting in Xcode Unit Test Target with "Defined Module" enabled

We have a project with the goal of Unit Test, which includes "Defines a module" due to the combination of Objective-C and Swift. When this option is enabled, syntax highlighting and code termination ceases for all non-language elements. Upon completion of the IE code, language-level material such as NS_ENUM will also be displayed for the loop, but not NSString, and not any of our classes.

The same thing happens if I create a new project, set the "Defines module" parameter to "YES." Syntax highlighting and code termination fail with Unit Test code, set it to NO when it starts working again.

We tried all the usual ways to make it work by deleting Derived Data, Check / Uncheck, Suggest completion when typing, and Enable completion of type input by deleting ~ / Library / Caches / com. Apple.dt.Xcode ", deleting items in var / folders /, adding some cleanup scripts to the post-build phase, setting the main goal to" Defines the module ", and, of course, endless reboots of Xcode and macOS.

I rewrote this on three different Macs (Sierra) with Xcode 8.3.2 and Xcode 8.2. I have one team member who does not have this problem, and the only real difference seems to be that he is still on El Cap.

Here is a list of some of the things we tried:

Xcode 8 syntax highlighting not working

How to clear caches and clear all Xcode 4 goals

Xcode 8.2

Xcode

Apple Dev

- , ( " " )? Radar.

+6
1

, arm64 Debug Valid . , - . arm64 .

+2

Source: https://habr.com/ru/post/1017027/


All Articles