【发布时间】:2011-08-09 10:26:42
【问题描述】:
我在构建包含 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" 正常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/Ad Hoc-iphoneos"-filelist"/Users/macuser/Library/Developer/Xcode/DerivedData/BlahHealthcare-frojqoeewvysjpcgcdtltizzbdri/ArchiveIntermediates/BlahHealthcare/IntermediateBuildFilesPath/BlahHealthcare.build/Ad Hoc-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。 build/Objects-normal/armv6/BlahHealthcare"
ld: 找不到 -lcrypto 的库 collect2: ld 返回 1 个退出状态 命令 /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 失败,退出代码为 1
一切似乎都配置正确,所以我不知道从哪里开始。我在其他帖子上尝试了各种答案,但似乎都没有。
有人知道我哪里出错了吗?
【问题讨论】:
标签: xcode archive ipa sqlcipher