CartoDB / mobile-sdk

CARTO Mobile SDK core project
https://carto.com/docs/carto-engine/mobile-sdk/
BSD 3-Clause "New" or "Revised" License
179 stars 65 forks source link

Build issues with latest release version 4.4.7 on M1 #529

Open asdafa3 opened 1 year ago

asdafa3 commented 1 year ago

Issue

Building the release version checking out the release tag release/v4.4.7 on M1 mac leads to compiler errors like the following

/Applications/IDEs/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/usr/include/c++/v1/__algorithm/upper_bound.h:31:36: error: no
      member named 'distance' in namespace 'std::__1'
    difference_type __len = _VSTD::distance(__first, __last);

so apparently the chosen compiler version is wrong. Is it possible that my provided XCode version is too recent or I need to fallback to another version and if yes, what is the latest supported version?

Building is done step by step accoding to the instructions in the BUILDING.md.

System Configuration

XCode: 14.2 (14C18) CLT: 14.1.0.0.1.1666437224 Used Compiler: Apple clang version 14.0.0 (clang-1400.0.29.202) CMake: 3.25.1

mtehver commented 1 year ago

Thanks for reporting this. Should be fixed now in master branch.