Roy Kolak Roy Kolak - 3 months ago 8x
Swift Question

Preventing xcode from trying to parse html

Xcode is trying to validate a local html as swift in my bundle. How do I tell xcode to ignore this html file?

xcode is trying to validate html as swift


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.

File Type Selector