Hi,
well it exists somewhere, in a library which isn’t cleaned or a header file which was copied over and not deleted. It doesn’t exist it has been deleted from the file system - it was never in any libraries or anything like that in the first place. I suppose there might be a file in the project that does contain a @class LTWGadgetX or an import but if there is then XCode global find doesn’t find it and nor does:
find . -type f -exec grep -i LTWGadgetZ {} \; -ls
'It's not hiding'! It's passed on! This file is no more! It has ceased to be! It's expired and gone to meet 'is maker! It's a stiff! Bereft of life, 'e rests in peace! If XCode hand’t stored it in a cache it'd be pushing up the daisies! ‘Is binary bits are now 'istory! It's off the twig! It's kicked the bucket, It's shuffled off 'is mortal coil, run down the curtain and joined the bleedin' choir invisible!! THIS IS AN EX-FILE!
There are no hidden menu options, there is an option to clean the Build Directory, which is in the same place that the option to clean the project is, you just hold down option to get the alternate menu, which is an OSX standard. In the Projects window is a button to delete derived data for any given project, that does a pretty good nuking, and then starts rebuilding it again for you shortly after.
Tried it a few times!
Or you close Xcode, you delete DerivedData, the whole thing, and you open Xcode again and you build from there. Fairly drastic, but something you used to have to do back in the early Swift days so something I’m reasonably comfortable doing.
Restarted the Machine and the problem went away.
Cheers Dave
|