Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

error when #include "Arduino.h" on macOS  #368

@sstaub

Description

@sstaub

Describe the bug
see screenshot, I got an error (but I can compile) when I include Arduino.h

In included file: Unsupported architecture
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2:
note: error occurred hereclang(pp_hash_error)

I know that Including Arduino.h is not needed, but necessary when use in platformIO.
Maybe a general problem with Xcode because GCC is no more supported on Xcode 12.

To Reproduce
Create a file with #include "Arduino.h"

Expected behavior
there should no error

Screenshots
error in #include

Desktop (please complete the following information):

  • OS: macOS 15.7
  • Xcode 12
  • Version: 0.1.2 nightly

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: language serverThe language server is responsible for "editor support", e.g. completion and diagnosticstype: imperfectionSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions