Roy Kolak Roy Kolak - 1 year ago 108
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

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download