XCode를 15로 버전 업 이후
React-native(0.71.8)로 제작된 ios앱에서 빌드시 에러 발생
No Template named 'unary_function' in namespace 'std'; did you mean '__unary_function?
원인
unary_function 및 bin_function은 더 이상 C++17 및 최신 표준 모드에서 제공되지 않습니다. _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION을 사용하여 다시 활성화할 수 있습니다.
해결방법
Pods 에서 Build Settings > Preprocessor Macros > Release or Debug > _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION 추가
빌드 및 인스톨 성공!
참고 : https://github.com/facebook/react-native/issues/37748
Build fails for Xcode 15 Beta 1 (and Beta 7) · Issue #37748 · facebook/react-native
Description When building with Xcode 15 Beta 1, building fails with a C++ issue in boost: › Compiling react-native Pods/RCT-Folly » json.cpp ❌ (ios/Pods/boost/boost/container_hash/hash.hpp:131:33) ...
github.com
'개발' 카테고리의 다른 글
[Nexacro][Grid] cell edit (0) | 2024.05.22 |
---|---|
[ios] FirebaseApp.configure() (0) | 2023.10.25 |
[ios] FirebaseAppDelegateProxyEnabled (0) | 2023.10.25 |
[react-native][ios] webview 디버깅 (1) | 2023.10.05 |
[react-native] error:0308010C:digital envelope routines::unsupported (0) | 2023.09.27 |