JiriHoffmann / react-native-clusterer

React Native clustering library using C++ Supercluster implementation
MIT License
157 stars 20 forks source link

[iOS] 3.0.0 build error on old arch #48

Open huschu opened 3 days ago

huschu commented 3 days ago

I had to upgrade to version 3.0.0 because my EAS builds had this issue, even though I haven't enabled the new architecture yet. But now on my local machine these commands fail:

CompileC [...]/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-clusterer.build/Objects-normal/arm64/react-native-clusterer.o [...]/node_modules/react-native-clusterer/cpp/react-native-clusterer.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-clusterer' from project 'Pods')
CompileC [...]/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-clusterer.build/Objects-normal/arm64/helpers.o [...]/node_modules/react-native-clusterer/cpp/helpers.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-clusterer' from project 'Pods')

When I bump the c++ dialect in Xcode it builds, but of course with every prebuild that setting is lost. I don't know much about c++ or pods, but is there a way to set this permanently?

dialect
SamuelPoulin commented 18 hours ago

Thanks for this fix, setting it to C++20 also resolved my issue temporarily..

sparethme commented 16 hours ago

also experiencing this, this is the only work around that worked for me... thanks for sharing @huschu