Error while compiling after platformio update on mac

The following error is occurring in while compiling this project in my mac. The same error do not happens both on windows and linux

In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:31:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.cpp:25:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:52:31: error: ‘String’ does not name a type
bool fromString(const String &address) { return fromString(address.c_str()); }
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:52:39: error: ISO C++ forbids declaration of ‘address’ with no type [-fpermissive]
bool fromString(const String &address) { return fromString(address.c_str()); }
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:80:9: error: ‘String’ does not name a type
String toString() const;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:87:28: error: ‘String’ does not name a type
static bool isValid(const String& arg);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:87:36: error: ISO C++ forbids declaration of ‘arg’ with no type [-fpermissive]
static bool isValid(const String& arg);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h: In member function ‘bool IPAddress::fromString(const int&)’:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:52:76: error: request for member ‘c_str’ in ‘address’, which is of non-class type ‘const int’
bool fromString(const String &address) { return fromString(address.c_str()); }
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:33:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.cpp:25:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiType.h: At global scope:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiType.h:107:5: error: ‘String’ does not name a type
String ssid;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiType.h:114:5: error: ‘String’ does not name a type
String ssid;
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:34:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.cpp:25:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:65:9: error: ‘String’ does not name a type
String macAddress();
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:71:9: error: ‘String’ does not name a type
String hostname();
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:74:23: error: ‘String’ has not been declared
bool hostname(String aHostname);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:78:9: error: ‘String’ does not name a type
String SSID() const;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:79:9: error: ‘String’ does not name a type
String psk() const;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:82:9: error: ‘String’ does not name a type
String BSSIDstr();
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:35:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.cpp:25:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.h:48:9: error: ‘String’ does not name a type
String softAPmacAddress(void);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.h:50:2: error: ‘String’ does not name a type
String softAPSSID() const;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.h:51:2: error: ‘String’ does not name a type
String softAPPSK() const;
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:36:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.cpp:25:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiScan.h:44:50: error: ‘String’ has not been declared
bool getNetworkInfo(uint8_t networkItem, String &ssid, uint8_t &encryptionType, int32_t &RSSI, uint8_t* &BSSID, int32_t &channel, bool &isHidden);
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:36:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.cpp:25:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiScan.h:46:9: error: ‘String’ does not name a type
String SSID(uint8_t networkItem);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiScan.h:50:9: error: ‘String’ does not name a type
String BSSIDstr(uint8_t networkItem);
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:31:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp:25:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:52:31: error: ‘String’ does not name a type
bool fromString(const String &address) { return fromString(address.c_str()); }
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:52:39: error: ISO C++ forbids declaration of ‘address’ with no type [-fpermissive]
bool fromString(const String &address) { return fromString(address.c_str()); }
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:80:9: error: ‘String’ does not name a type
String toString() const;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:87:28: error: ‘String’ does not name a type
static bool isValid(const String& arg);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:87:36: error: ISO C++ forbids declaration of ‘arg’ with no type [-fpermissive]
static bool isValid(const String& arg);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h: In member function ‘bool IPAddress::fromString(const int&)’:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:52:76: error: request for member ‘c_str’ in ‘address’, which is of non-class type ‘const int’
bool fromString(const String &address) { return fromString(address.c_str()); }
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:33:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp:25:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiType.h: At global scope:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiType.h:107:5: error: ‘String’ does not name a type
String ssid;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiType.h:114:5: error: ‘String’ does not name a type
String ssid;
^
Compiling .pioenvs/nodemcuv2_prod/libc44/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.cpp:25:0:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:63:36: error: no members matching ‘ESP8266WiFiSTAClass::SSID’ in ‘class ESP8266WiFiSTAClass’
using ESP8266WiFiSTAClass::SSID;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:66:36: error: no members matching ‘ESP8266WiFiSTAClass::BSSIDstr’ in ‘class ESP8266WiFiSTAClass’
using ESP8266WiFiSTAClass::BSSIDstr;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:68:37: error: no members matching ‘ESP8266WiFiScanClass::SSID’ in ‘class ESP8266WiFiScanClass’
using ESP8266WiFiScanClass::SSID;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:72:37: error: no members matching ‘ESP8266WiFiScanClass::BSSIDstr’ in ‘class ESP8266WiFiScanClass’
using ESP8266WiFiScanClass::BSSIDstr;
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:34:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp:25:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:65:9: error: ‘String’ does not name a type
String macAddress();
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:71:9: error: ‘String’ does not name a type
String hostname();
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:74:23: error: ‘String’ has not been declared
bool hostname(String aHostname);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:78:9: error: ‘String’ does not name a type
String SSID() const;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:79:9: error: ‘String’ does not name a type
String psk() const;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:82:9: error: ‘String’ does not name a type
String BSSIDstr();
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:35:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp:25:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.h:48:9: error: ‘String’ does not name a type
String softAPmacAddress(void);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.h:50:2: error: ‘String’ does not name a type
String softAPSSID() const;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.h:51:2: error: ‘String’ does not name a type
String softAPPSK() const;
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:36:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp:25:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiScan.h:44:50: error: ‘String’ has not been declared
bool getNetworkInfo(uint8_t networkItem, String &ssid, uint8_t &encryptionType, int32_t &RSSI, uint8_t* &BSSID, int32_t &channel, bool &isHidden);
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:36:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp:25:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiScan.h:46:9: error: ‘String’ does not name a type
String SSID(uint8_t networkItem);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiScan.h:50:9: error: ‘String’ does not name a type
String BSSIDstr(uint8_t networkItem);
^
*** [.pioenvs/nodemcuv2_prod/libc44/ESP8266WiFi/ESP8266WiFi.cpp.o] Error 1
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp:25:0:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:63:36: error: no members matching ‘ESP8266WiFiSTAClass::SSID’ in ‘class ESP8266WiFiSTAClass’
using ESP8266WiFiSTAClass::SSID;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:66:36: error: no members matching ‘ESP8266WiFiSTAClass::BSSIDstr’ in ‘class ESP8266WiFiSTAClass’
using ESP8266WiFiSTAClass::BSSIDstr;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:68:37: error: no members matching ‘ESP8266WiFiScanClass::SSID’ in ‘class ESP8266WiFiScanClass’
using ESP8266WiFiScanClass::SSID;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:72:37: error: no members matching ‘ESP8266WiFiScanClass::BSSIDstr’ in ‘class ESP8266WiFiScanClass’
using ESP8266WiFiScanClass::BSSIDstr;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp:334:8: error: prototype for ‘String ESP8266WiFiAPClass::softAPmacAddress()’ does not match any in class ‘ESP8266WiFiAPClass’
String ESP8266WiFiAPClass::softAPmacAddress(void) {
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp:325:10: error: candidate is: uint8_t* ESP8266WiFiAPClass::softAPmacAddress(uint8_t*)
uint8_t* ESP8266WiFiAPClass::softAPmacAddress(uint8_t* mac) {
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp:347:41: error: no ‘String ESP8266WiFiAPClass::softAPSSID() const’ member function declared in class ‘ESP8266WiFiAPClass’
String ESP8266WiFiAPClass::softAPSSID() const {
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp:362:40: error: no ‘String ESP8266WiFiAPClass::softAPPSK() const’ member function declared in class ‘ESP8266WiFiAPClass’
String ESP8266WiFiAPClass::softAPPSK() const {
^
*** [.pioenvs/nodemcuv2_prod/libc44/ESP8266WiFi/ESP8266WiFiAP.cpp.o] Error 1
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:31:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:27:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:52:31: error: ‘String’ does not name a type
bool fromString(const String &address) { return fromString(address.c_str()); }
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:52:39: error: ISO C++ forbids declaration of ‘address’ with no type [-fpermissive]
bool fromString(const String &address) { return fromString(address.c_str()); }
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:80:9: error: ‘String’ does not name a type
String toString() const;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:87:28: error: ‘String’ does not name a type
static bool isValid(const String& arg);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:87:36: error: ISO C++ forbids declaration of ‘arg’ with no type [-fpermissive]
static bool isValid(const String& arg);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h: In member function ‘bool IPAddress::fromString(const int&)’:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:52:76: error: request for member ‘c_str’ in ‘address’, which is of non-class type ‘const int’
bool fromString(const String &address) { return fromString(address.c_str()); }
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:33:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:27:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiType.h: At global scope:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiType.h:107:5: error: ‘String’ does not name a type
String ssid;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiType.h:114:5: error: ‘String’ does not name a type
String ssid;
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:34:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:27:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:65:9: error: ‘String’ does not name a type
String macAddress();
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:71:9: error: ‘String’ does not name a type
String hostname();
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:74:23: error: ‘String’ has not been declared
bool hostname(String aHostname);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:78:9: error: ‘String’ does not name a type
String SSID() const;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:79:9: error: ‘String’ does not name a type
String psk() const;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:82:9: error: ‘String’ does not name a type
String BSSIDstr();
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:35:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:27:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.h:48:9: error: ‘String’ does not name a type
String softAPmacAddress(void);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.h:50:2: error: ‘String’ does not name a type
String softAPSSID() const;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiAP.h:51:2: error: ‘String’ does not name a type
String softAPPSK() const;
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:36:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:27:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiScan.h:44:50: error: ‘String’ has not been declared
bool getNetworkInfo(uint8_t networkItem, String &ssid, uint8_t &encryptionType, int32_t &RSSI, uint8_t* &BSSID, int32_t &channel, bool &isHidden);
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:36:0,
from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:27:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiScan.h:46:9: error: ‘String’ does not name a type
String SSID(uint8_t networkItem);
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiScan.h:50:9: error: ‘String’ does not name a type
String BSSIDstr(uint8_t networkItem);
^
In file included from /Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:27:0:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:63:36: error: no members matching ‘ESP8266WiFiSTAClass::SSID’ in ‘class ESP8266WiFiSTAClass’
using ESP8266WiFiSTAClass::SSID;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:66:36: error: no members matching ‘ESP8266WiFiSTAClass::BSSIDstr’ in ‘class ESP8266WiFiSTAClass’
using ESP8266WiFiSTAClass::BSSIDstr;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:68:37: error: no members matching ‘ESP8266WiFiScanClass::SSID’ in ‘class ESP8266WiFiScanClass’
using ESP8266WiFiScanClass::SSID;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:72:37: error: no members matching ‘ESP8266WiFiScanClass::BSSIDstr’ in ‘class ESP8266WiFiScanClass’
using ESP8266WiFiScanClass::BSSIDstr;
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp: In lambda function:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:104:13: error: ‘struct WiFiEventStationModeConnected’ has no member named ‘ssid’
dst.ssid = String(reinterpret_cast<char*>(src.ssid));
^
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp: In lambda function:
/Users/joaotrevizoliesteves/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:118:13: error: ‘struct WiFiEventStationModeDisconnected’ has no member named ‘ssid’
dst.ssid = String(reinterpret_cast<char*>(src.ssid));
^
*** [.pioenvs/nodemcuv2_prod/libc44/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o] Error 1

Does it seem that you resolved this issue?

I have the same problem, have you solved the problem?

With what platformio.ini and code can the problem be reproduced?

export CPATH=xcrun --show-sdk-path/usr/include

Solved by comment this line in ~/.zshrc.