【问题标题】:SQLCipher runs successfully with simulator but doesnt buildSQLCipher 在模拟器上成功运行,但没有构建
【发布时间】:2012-03-16 22:35:10
【问题描述】:

SQLCipher 在模拟器上运行成功,但没有在设备上构建;相反,我收到以下错误:

cp: libssl.a: 没有这样的文件或目录

sqlite3.c:91838:内部编译器错误:在 find_src_set_src 中,位于 var-tracking.c:1922

我已按照 SQLCIPHER 网站上给出的整个程序进行操作。它在模拟器上成功运行,但是当我将其更改为 iOSDevice 时,会出现上述错误。 请尽快帮助我

【问题讨论】:

  • 您要为什么设备架构构建?

标签: iphone objective-c sql sqlite sqlcipher


【解决方案1】:

请确保您使用的是来自此存储库的官方 2.0 版本,https://github.com/sqlcipher/sqlcipher,它解决了针对 armv6 构建的问题。

【讨论】:

    【解决方案2】:

    打开 openssl.xcodeproj 并按照此站点的说明进行操作: http://programmer-in-paradise.blogspot.com/2011/07/how-to-build-openssl-in-xcode.html 您需要设置一个新目标,然后将 libssl.a 引入您的项目。

    如果您仍有问题: 由于 XCode 4.3(2) 在设备(而不是模拟器)上发布和测试关于 arm 6 的抱怨,最好编译自己的 openssl 库 [参见 http://www.x2on.de/2010/07/13/tutorial- iphone-app-with-compiled-openssl-1-0-0a-library/]。您只需要调整一些路径 [例如 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk 和 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS .platform/Developer/SDKs,如果您熟悉脚本]。我设法为最后一个版本的 OpenSSL [2012 openssl-1.0.1c] 构建了库,然后包含在我的项目中,并能够使用加密的数据库构建发布和存档以进行分发。

    【讨论】:

      猜你喜欢
      • 2015-12-31
      • 1970-01-01
      • 2012-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-14
      • 1970-01-01
      相关资源
      最近更新 更多