Xcode is trying to validate a local html as swift in my bundle. How do I tell xcode to ignore this html file?
You must have messed up Xcode somehow. Xcode thinks it's a source code file, not a simple resource.
Click View > Utilities > Show Files Inspector (or press Cmd + Opt + 1). Then select the appropriate type for your HTML file.
Cmd + Opt + 1