The module should be imported but displayed in strikethrough font in Xcode 7.3

UPDATE:

@JAL pointed to the accepted SO answer , which suggests that the behavior described in this question is a BUG , which is now supposed to be fixed. There is no indication of when this fix continues, however.

PREVIOUS UPDATE:

As this answer suggests, Xcode displays import <module_name> in a strikethrough font when it decides that the import is redundant (as I assumed in the original question below). BUT without compiler import <module_name> with error.

Such misconduct is the subject of my initial question. Is this a mistake or am I missing something (for example, the correct link to the framework, etc.)?

ORIGINAL QUESTION:

What does it mean when Xcode, which prompts you to import a module as you type, displays the name of the required module in a string font?

enter image description here

Description:

I want to create a simple subclass of GKEntity . So, in the new .swift file, I add the following:

 class TBTEntity: GKEntity { } 

I know that GKEntity itself is part of the GameplayKit framework. So, I have to import the framework, otherwise I see an error.

enter image description here

Using the undeclared GKEntity Type

From a UX point of view, the strikethrough font offers me something like “you won’t need it” or “the module is unavailable”, but none of this seems really true.

Xcode 7.3 (7D175)

+7
ios xcode swift swift2 xcode7
Feb 27 '16 at 15:33
source share

No one has answered this question yet.

See similar questions:

48
Xcode 7.3: import module displayed with strikethrough
0
Is the name of the Xcode import architecture scratched?

or similar:

479
"Consent to an Xcode / iOS license requires administrator privileges, please run it with root privileges via sudo." when using GCC
297
How to increase font size in Xcode editor?
295
Getting "No such module" error using Xcode, but structure exists
136
The "++" and "-" operators are deprecated in Xcode 7.3
48
Xcode 7.3: import module displayed with strikethrough
eleven
“No such Alamofire module” Xcode does not recognize Alamofire structure
7
There is no such module ... in Xcode
5
Xcode 7.3 uneclared type for Obj C enum in Swift code
2
Xcode: no such module 'Alamofire'
one
ios - Xcode 10: Razorpay pod module compiled with Swift 4.1 cannot be imported by Swift 4.2 compiler "



All Articles