升级到XCode26后,编译WCDB(1.1.0),会编译失败报错,请问需要怎么解决兼容性问题。
In file included from /Users/xxx/Pods/WCDB/objc/WCDB/abstract/subquery.cpp:21:
In file included from /Users/xxx/Pods/WCDB/objc/WCDB/abstract/clause_join.hpp:24:
In file included from /Users/xxx/Pods/WCDB/objc/WCDB/abstract/declare.hpp:27:
In file included from /Applications/Xcode26.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.2.sdk/usr/include/c++/v1/functional:553:
In file included from /Applications/Xcode26.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.2.sdk/usr/include/c++/v1/__functional/function.h:22:
/Applications/Xcode26.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.2.sdk/usr/include/c++/v1/__memory/allocator.h:81:17: error: static assertion failed due to requirement '!is_const<const WCDB::Subquery>::value': std::allocator does not support const types
81 | static_assert(!is_const<_Tp>::value, "std::allocator does not support const types");
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /Users/xxx/Pods/WCDB/objc/WCDB/abstract/subquery.cpp:21:
In file included from /Users/xxx/Pods/WCDB/objc/WCDB/abstract/declare.hpp:27:
In file included from /Userx/xxx/Pods/WCDB/objc/WCDB/abstractx/declare.hpp:27:
相似问题