首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >升级到XCode26后,编译WCDB(1.1.0),会编译失败报错,请问需要怎么解决兼容性问题?

升级到XCode26后,编译WCDB(1.1.0),会编译失败报错,请问需要怎么解决兼容性问题?

提问于 2026-03-24 10:43:24
回答 0关注 0查看 5

升级到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:

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档