Skip to content

Commit

Permalink
[Build] ChipTool iOS fails to build (again) (#5910)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple authored Apr 9, 2021
1 parent 1274bcf commit 524bafa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/darwin/Framework/CHIP.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@
"$(CHIP_ROOT)/src/darwin/Framework/CHIP/",
"$(CHIP_ROOT)/src/app/util",
"$(CHIP_ROOT)/third_party/nlio/repo/include",
"$(TEMP_DIR)/out/gen/include",
);
INFOPLIST_FILE = CHIP/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
Expand Down Expand Up @@ -667,6 +668,7 @@
"$(CHIP_ROOT)/config/ios",
"$(CHIP_ROOT)/third_party/nlassert/repo/include",
.,
"$(TEMP_DIR)/out/gen/include",
);
INFOPLIST_FILE = CHIP/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
Expand Down
9 changes: 9 additions & 0 deletions src/platform/Darwin/ConfigurationManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,22 @@
#include <support/CodeUtils.h>
#include <support/logging/CHIPLogging.h>

#include <TargetConditionals.h>
#if TARGET_OS_OSX
#include <CoreFoundation/CoreFoundation.h>

#include <IOKit/IOKitLib.h>
#include <IOKit/network/IOEthernetController.h>
#include <IOKit/network/IOEthernetInterface.h>
#include <IOKit/network/IONetworkInterface.h>
#endif // TARGET_OS_OSX

namespace chip {
namespace DeviceLayer {

using namespace ::chip::DeviceLayer::Internal;

#if TARGET_OS_OSX
CHIP_ERROR FindInterfaces(io_iterator_t * primaryInterfaceIterator)
{
CHIP_ERROR err = CHIP_NO_ERROR;
Expand Down Expand Up @@ -122,6 +126,7 @@ CHIP_ERROR GetMACAddressFromInterfaces(io_iterator_t primaryInterfaceIterator, u

return err;
}
#endif // TARGET_OS_OSX

/** Singleton instance of the ConfigurationManager implementation object.
*/
Expand All @@ -141,6 +146,7 @@ CHIP_ERROR ConfigurationManagerImpl::_Init()

CHIP_ERROR ConfigurationManagerImpl::_GetPrimaryWiFiMACAddress(uint8_t * buf)
{
#if TARGET_OS_OSX
CHIP_ERROR err = CHIP_NO_ERROR;

io_iterator_t primaryInterfaceIterator;
Expand All @@ -151,6 +157,9 @@ CHIP_ERROR ConfigurationManagerImpl::_GetPrimaryWiFiMACAddress(uint8_t * buf)
IOObjectRelease(primaryInterfaceIterator);

return err;
#else
return CHIP_ERROR_NOT_IMPLEMENTED;
#endif // TARGET_OS_OSX
}

bool ConfigurationManagerImpl::_CanFactoryReset()
Expand Down

0 comments on commit 524bafa

Please sign in to comment.