Tencent / wcdb

WCDB is a cross-platform database framework developed by WeChat.
Other
10.73k stars 1.4k forks source link

XCode15.2可编译,但是打包会报错未找到sqlcipher #1053

Closed CorbinLeeBest closed 6 months ago

CorbinLeeBest commented 6 months ago

XCode没升级之前都正常,升级到15.2之后运行可以,打包会报错。 Build input file cannot be found: '***(路径)/BuildProductsPath/DailyBuild-iphoneos/WCDBOptimizedSQLCipher/sqlcipher.framework/sqlcipher'.

Qiuwen-chen commented 6 months ago

Please try 2.1.0

Annabelle1024 commented 4 months ago

Please try 2.1.0

do you mean to update sqlcipher to 2.1.0? if so, which version should i use for WCDB

Qiuwen-chen commented 4 months ago

Please try 2.1.0

do you mean to update sqlcipher to 2.1.0? if so, which version should i use for WCDB

WCDB 2.1.4

Annabelle1024 commented 4 months ago

Please try 2.1.0

do you mean to update sqlcipher to 2.1.0? if so, which version should i use for WCDB

WCDB 2.1.4

is there any other method? I tried to update WCDB to 2.1.4, but it requires Swift5, our app now still supports swift4. It's a big change, I can't update to Swift 5 directly. I tried to add this command $(BUILT_PRODUCTS_DIR)/WCDBOptimizedSQLCipher/sqlcipher.framework/sqlcipher to runscript output file, it works when archive, but when I excute the app, WCBD dose not work, it could't query or save

image
Annabelle1024 commented 4 months ago

XCode没升级之前都正常,升级到15.2之后运行可以,打包会报错。 Build input file cannot be found: '***(路径)/BuildProductsPath/DailyBuild-iphoneos/WCDBOptimizedSQLCipher/sqlcipher.framework/sqlcipher'.

你好, 你的问题解决了吗?

CorbinLeeBest commented 4 months ago

/BuildProductsPath/DailyBuild-iphoneos/WCDBOptimizedSQLCipher/sqlcipher.framework/sqlcipher'.

我是在other linker flags里面把/BuildProductsPath/DailyBuild-iphoneos/WCDBOptimizedSQLCipher/sqlcipher.framework/sqlcipher'.直接删掉。 添加 -ld64 和 -all_load

image
Annabelle1024 commented 4 months ago

感谢回答,我马上试试

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年05月09日 11:25 | | 收件人 | @.> | | 抄送至 | Jing @.>@.> | | 主题 | Re: [Tencent/wcdb] XCode15.2可编译,但是打包会报错未找到sqlcipher (Issue #1053) |

/BuildProductsPath/DailyBuild-iphoneos/WCDBOptimizedSQLCipher/sqlcipher.framework/sqlcipher'.

我是在other linker flags里面把/BuildProductsPath/DailyBuild-iphoneos/WCDBOptimizedSQLCipher/sqlcipher.framework/sqlcipher'.直接删掉。 添加 -ld64 和 -all_load image.png (view on web)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

CorbinLeeBest commented 4 months ago

不好意思,刚才书写有误,删除的是之前项目other linker flags中的 -framework "WCDBSwift" -force_load $(BUILT_PRODUCTS_DIR)/WCDBOptimizedSQLCipher/sqlcipher.framework/sqlcipher

Annabelle1024 commented 4 months ago

嗯嗯,我能懂你的意思,太感谢了.

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年05月09日 11:35 | | 收件人 | @.> | | 抄送至 | Jing @.>@.> | | 主题 | Re: [Tencent/wcdb] XCode15.2可编译,但是打包会报错未找到sqlcipher (Issue #1053) |

不好意思,刚才书写有误,删除的是之前项目other linker flags中的 -framework "WCDBSwift" -force_load $(BUILT_PRODUCTS_DIR)/WCDBOptimizedSQLCipher/sqlcipher.framework/sqlcipher

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>