0

so I have a project with a name that's annoying to type out all the time, when specifying the "namespace" of a class, like

MyAppName.MyClass()

So I changed the Product Module Name in XCode's Build Settings to "Global" so that I can use it like this:

Global.MyClass()

Everything is working, except that I won't get auto-complete suggestions when typing in Global.

It worked before so changing the Product Module Name messed something up.

Do you know what I can do to fix auto-complete?

AtulParmar
  • 4,358
  • 1
  • 24
  • 45
SwiftedMind
  • 3,701
  • 3
  • 29
  • 63
  • May seem obvious (or strange I guess), but when having strange problems in Xcode and restarting Xcode doesn't fix it, restart your mac. Usually fixes it for me. – George May 24 '19 at 09:48
  • Just tried but didn't help. Thanks for the tip, though :) – SwiftedMind May 24 '19 at 09:53

1 Answers1

0

Try deleting xcuserdata from your xcworkspace. Then clean Derived Data and restart XCode.

Viren Malhan
  • 115
  • 1
  • 5
  • Okay, that's strange. It is working everywhere, except when I'm declaring the type of a variable, like `var test: Global.` – SwiftedMind May 24 '19 at 09:38