Xcode 15(iOS17)编译适配报错

报错:No template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? 

解决:

Xcode点击Pods点击Build Settings点击 Basic找到Apple Clang-Preprocessing下的Preprocessor Macros 

添加:_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION

Xcode 15(iOS17)编译适配报错_第1张图片

你可能感兴趣的:(xcode,macos,ide)