SQLCipher,Xcode 4和创建IPA

时间:2011-08-09 10:26:42

标签: xcode archive ipa sqlcipher

我在构建包含SQLCipher和OpenSSL的归档项目时遇到了问题。

该项目在模拟器和我的iphone上构建良好,但在构建Ad-Hoc分发时(使用正确的Ad-Hoc方案),它会构建但会导致错误:

Ld“/Users/macuser/Library/Developer/Xcode/DerivedData/BlahHealthcare-frojqoeewvysjpcgcdtltizzbdri/ArchiveIntermediates/BlahHealthcare/IntermediateBuildFilesPath/BlahHealthcare.build/Ad Hoc-iphoneos / BlahHealthcare.build / Objects-normal / armv6 / BlahHealthcare”normal的ARMv6     cd“/ Users / macuser / Projects / BlahHealthcare”     setenv IPHONEOS_DEPLOYMENT_TARGET 4.3     setenv PATH“/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”     /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk“-L / Users / macuser / Library / Developer / Xcode / DerivedData / BlahHealthcare-frojqoeewvysjpcgcdtltizzbdri / ArchiveIntermediates / BlahHealthcare / BuildProductsPath / Ad Hoc-iphoneos“” - L / Users / macuser / Projects / BlahHealthcare“” - F / Users / macuser / Library / Developer / Xcode / DerivedData / BlahHealthcare-frojqoeewvysjpcgcdtltizzbdri / ArchiveIntermediates / BlahHealthcare / BuildProductsPath /特设的iPhoneOS “-filelist” /Users/macuser/Library/Developer/Xcode/DerivedData/BlahHealthcare-frojqoeewvysjpcgcdtltizzbdri/ArchiveIntermediates/BlahHealthcare/IntermediateBuildFilesPath/BlahHealthcare.build/Ad特设-的iPhoneOS / BlahHealthcare.build/Objects-normal/armv6/BlahHealthcare.LinkFileList“-dead_strip -lxml2 -miphoneos-version-min = 4.3 -lcrypto -lsqlcipher -framework Foundation -framework UIKit -framework CoreGraphics -licucore.A -framework CFNetwork -framework SystemConfi guration -framework MobileCoreServices -lz.1.2.3 -framework Security -o“/Users/macuser/Library/Developer/Xcode/DerivedData/BlahHealthcare-frojqoeewvysjpcgcdtltizzbdri/ArchiveIntermediates/BlahHealthcare/IntermediateBuildFilesPath/BlahHealthcare.build/Ad Hoc-iphoneos / BlahHealthcare。建立/对象 - 正常/的ARMv6 / BlahHealthcare“

ld:找不到-lcrypto的库 collect2:ld返回1退出状态 命令/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2失败,退出代码为1

所有内容似乎都配置正确,所以我不知道从哪里开始。我在其他帖子上尝试了各种答案,但似乎都没有。

有谁知道我哪里出错了?

1 个答案:

答案 0 :(得分:0)

看起来你只为armv6构建(不是armv6 + armv7,或者仅仅是armv7),这对于Xcode 4.2和构建系统来说可能有点麻烦,因为这些天它似乎默认为armv7并且放弃了支持对于armv6。无论如何,我们最近更新了OpenSSL-Xcode和SQLCipher Xcode项目构建设置,这样大多数构建都可以在Debug和Release上成功运行,前提是“子项目” 1 具有ARCHS设置匹配正在构建的主项目。目前我们将这个默认为armv6和armv7。

您应该抓住最新版本的OpenSSL-XcodeSQLCipher,检查项目设置against our updated tutorial,如果一切都匹配,请调整ARCHITECTURES设置在主项目文件的构建设置中,以及在仅包含“armv6”的两个依赖项目中。

[1]“子项目”没有像通常所说的那样继承任何设置,所以它有点用词不当,因此引用了恐慌。